
Modelo:
Precio: from 60 credits per request · ≈ $0.03Alta estabilidad, con registros de uso detallados en la plataforma APIAny.
Usar imágenes de referencia
Desactivado significa texto a imagen. Al activarlo puedes subir o pegar hasta 16 imágenes de referencia.
Output size. Use auto, a W:H ratio, or a valid WIDTHxHEIGHT value; explicit pixels are preserved and must match the selected resolution tier.
Output resolution tier. It is independent from rendering quality.
Rendering effort. Auto lets the selected provider choose an appropriate tier.
Number of images to generate. Credits and upstream cost scale with n.
Background handling. Transparent output requires a compatible route.
Requested image output format when supported by the selected provider.
Estimación en USD ≈ $0.045: Nivel $999: 1 USD = 2,000 créditos.

Imágenes y vídeos reales creados con nuestros modelos. Previsualizar o cargar un ejemplo no inicia la generación.
Modelo de generación real: gpt-image-2.5-flare
{
"model": "gpt-image-2.5",
"prompt": "Photorealistic editorial product photograph of a single unbranded cobalt-blue glass perfume bottle on a pale limestone plinth, soft side sunlight, delicate water caustics, subtle glass reflections, restrained luxury art direction, believable materials. Entire bottle visible with a generous margin, elegant wide composition. No text, letters, numbers, labels, branding, logos, watermark, interface, captions or graphic overlays anywhere in the image. One coherent scene, no collage.",
"size": "16:9",
"resolution": "2K",
"quality": "medium",
"n": 1,
"background": "opaque"
}Historial
Guardado localmente en este navegador
0 en curso · 0 completadas
Reglas de facturación
Autenticación
Cada solicitud debe incluir un token Bearer en el encabezado Authorization. Crea tu API Key en la consola.
Authorization: Bearer YOUR_API_KEYhttps://apiany.ai/v1/images/generationsParámetros de solicitud
| Parámetro | Tipo | Obligatorio | Notas |
|---|---|---|---|
model | cadena | Obligatorio | Identificador del modelo a llamar; usa el ID de este modelo. |
prompt | cadena | Obligatorio | Prompt de texto que describe lo que quieres generar. |
size | cadena | Opcional | Output size. Use auto, a W:H ratio, or a valid WIDTHxHEIGHT value; explicit pixels are preserved and must match the selected resolution tier. · Valores posibles: auto, 1:1, 1:2, 2:1, 1:3, 3:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9, 9:21 · Predeterminado: auto |
resolution | cadena | Opcional | Output resolution tier. It is independent from rendering quality. · Valores posibles: 1K, 2K, 4K · Predeterminado: 1K |
quality | cadena | Opcional | Rendering effort. Auto lets the selected provider choose an appropriate tier. · Valores posibles: auto, low, medium, high, xhigh, max · Predeterminado: auto |
n | número | Opcional | Number of images to generate. Credits and upstream cost scale with n. · Rango: 1–10 · Predeterminado: 1 |
background | cadena | Opcional | Background handling. Transparent output requires a compatible route. · Valores posibles: auto, opaque, transparent · Predeterminado: auto |
output_format | cadena | Opcional | Requested image output format when supported by the selected provider. · Valores posibles: png, jpeg, webp · Predeterminado: png |
output_compression | número | Opcional | Compression level for JPEG or WebP output. · Rango: 0–100 · Predeterminado: 100 |
callback_url | cadena | Opcional | Dirección de callback opcional, llamada al completar la tarea asíncrona. |
Ejemplo de solicitud
curl "https://apiany.ai/v1/images/generations" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2.5",
"prompt": "Photorealistic editorial product photograph of a single unbranded cobalt-blue glass perfume bottle on a pale limestone plinth, soft side sunlight, delicate water caustics, subtle glass reflections, restrained luxury art direction, believable materials. Entire bottle visible with a generous margin, elegant wide composition. No text, letters, numbers, labels, branding, logos, watermark, interface, captions or graphic overlays anywhere in the image. One coherent scene, no collage.",
"size": "auto",
"resolution": "1K",
"quality": "auto",
"n": 1
}'Ejemplo de respuesta
{
"task_id": "task_abc123",
"status": "pending",
"poll_url": "/v1/tasks/task_abc123",
"request_id": "req_abc123",
"credits": {
"reserved": 1000
}
}Este endpoint es asíncrono: tras la solicitud devuelve inmediatamente task_id. Consulta por polling el endpoint de estado de tarea hasta que status sea succeeded y luego lee result. Los enlaces multimedia generados son válidos durante 24 horas.