|
| 1 | +import { AIImageModelCard } from '../types'; |
| 2 | + |
| 3 | +// Replicate image models |
| 4 | +// https://replicate.com/black-forest-labs |
| 5 | +const imageModels: AIImageModelCard[] = [ |
| 6 | + { |
| 7 | + description: |
| 8 | + 'FLUX 1.1 Pro - Faster, better FLUX Pro with excellent image quality and prompt adherence.', |
| 9 | + displayName: 'FLUX 1.1 Pro', |
| 10 | + enabled: true, |
| 11 | + id: 'black-forest-labs/flux-1.1-pro', |
| 12 | + parameters: { |
| 13 | + aspectRatio: { |
| 14 | + default: '1:1', |
| 15 | + enum: ['1:1', '16:9', '9:16', '4:3', '3:4', '21:9', '9:21'], |
| 16 | + }, |
| 17 | + prompt: { default: '' }, |
| 18 | + seed: { default: null }, |
| 19 | + }, |
| 20 | + pricing: { |
| 21 | + units: [{ name: 'imageGeneration', rate: 0.04, strategy: 'fixed', unit: 'image' }], |
| 22 | + }, |
| 23 | + releasedAt: '2024-10-02', |
| 24 | + type: 'image', |
| 25 | + }, |
| 26 | + { |
| 27 | + description: 'FLUX Schnell - Fast image generation model optimized for speed.', |
| 28 | + displayName: 'FLUX Schnell', |
| 29 | + enabled: true, |
| 30 | + id: 'black-forest-labs/flux-schnell', |
| 31 | + parameters: { |
| 32 | + aspectRatio: { |
| 33 | + default: '1:1', |
| 34 | + enum: ['1:1', '16:9', '9:16', '4:3', '3:4', '21:9', '9:21'], |
| 35 | + }, |
| 36 | + prompt: { default: '' }, |
| 37 | + seed: { default: null }, |
| 38 | + }, |
| 39 | + pricing: { |
| 40 | + units: [{ name: 'imageGeneration', rate: 0.003, strategy: 'fixed', unit: 'image' }], |
| 41 | + }, |
| 42 | + releasedAt: '2024-08-01', |
| 43 | + type: 'image', |
| 44 | + }, |
| 45 | + { |
| 46 | + description: 'FLUX Dev - Development version of FLUX for non-commercial use.', |
| 47 | + displayName: 'FLUX Dev', |
| 48 | + enabled: true, |
| 49 | + id: 'black-forest-labs/flux-dev', |
| 50 | + parameters: { |
| 51 | + aspectRatio: { |
| 52 | + default: '1:1', |
| 53 | + enum: ['1:1', '16:9', '9:16', '4:3', '3:4', '21:9', '9:21'], |
| 54 | + }, |
| 55 | + cfg: { default: 3.5, max: 10, min: 1, step: 0.1 }, |
| 56 | + prompt: { default: '' }, |
| 57 | + seed: { default: null }, |
| 58 | + steps: { default: 28, max: 50, min: 1 }, |
| 59 | + }, |
| 60 | + pricing: { |
| 61 | + units: [{ name: 'imageGeneration', rate: 0.025, strategy: 'fixed', unit: 'image' }], |
| 62 | + }, |
| 63 | + releasedAt: '2024-08-01', |
| 64 | + type: 'image', |
| 65 | + }, |
| 66 | + { |
| 67 | + description: 'FLUX Pro - Professional FLUX model with high quality output.', |
| 68 | + displayName: 'FLUX Pro', |
| 69 | + enabled: true, |
| 70 | + id: 'black-forest-labs/flux-pro', |
| 71 | + parameters: { |
| 72 | + aspectRatio: { |
| 73 | + default: '1:1', |
| 74 | + enum: ['1:1', '16:9', '9:16', '4:3', '3:4', '21:9', '9:21'], |
| 75 | + }, |
| 76 | + cfg: { default: 3, max: 10, min: 1, step: 0.1 }, |
| 77 | + prompt: { default: '' }, |
| 78 | + seed: { default: null }, |
| 79 | + steps: { default: 25, max: 50, min: 1 }, |
| 80 | + }, |
| 81 | + pricing: { |
| 82 | + units: [{ name: 'imageGeneration', rate: 0.05, strategy: 'fixed', unit: 'image' }], |
| 83 | + }, |
| 84 | + releasedAt: '2024-08-01', |
| 85 | + type: 'image', |
| 86 | + }, |
| 87 | +]; |
| 88 | + |
| 89 | +export const allModels = [...imageModels]; |
| 90 | + |
| 91 | +export default allModels; |
0 commit comments