
Modell:
Referenzbilder verwenden
Aus bedeutet Text-zu-Bild. Aktiviert kannst du bis zu 16 Referenzbilder hochladen oder einfügen.
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.
USD-Schätzung $0.045-$0.09: Das größte Aufladepaket rechnet mit $1 = 2.000 Credits; das Starterpaket mit $1 = 1.000 Credits.

Verlauf
Lokal in diesem Browser gespeichert
0 läuft · 0 abgeschlossen
Abrechnungsregeln
Authentifizierung
Jede Anfrage muss im Authorization Header ein Bearer Token enthalten. Erstelle deinen API Key in der Konsole.
Authorization: Bearer YOUR_API_KEYhttps://apiany.ai/v1/images/generationsRequest-Parameter
| Parameter | Typ | Erforderlich | Hinweise |
|---|---|---|---|
model | String | Erforderlich | Die Modellkennung für den Aufruf; verwende die ID dieses Modells. |
prompt | String | Erforderlich | Textprompt, der beschreibt, was du generieren möchtest. |
size | String | Optional | Output size. Use auto, a W:H ratio, or a valid WIDTHxHEIGHT value; explicit pixels are preserved and must match the selected resolution tier. · Optionen: 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 · Standard: auto |
resolution | String | Optional | Output resolution tier. It is independent from rendering quality. · Optionen: 1K, 2K, 4K · Standard: 1K |
quality | String | Optional | Rendering effort. Auto lets the selected provider choose an appropriate tier. · Optionen: auto, low, medium, high, xhigh, max · Standard: auto |
n | Zahl | Optional | Number of images to generate. Credits and upstream cost scale with n. · Bereich: 1–10 · Standard: 1 |
background | String | Optional | Background handling. Transparent output requires a compatible route. · Optionen: auto, opaque, transparent · Standard: auto |
output_format | String | Optional | Requested image output format when supported by the selected provider. · Optionen: png, jpeg, webp · Standard: png |
output_compression | Zahl | Optional | Compression level for JPEG or WebP output. · Bereich: 0–100 · Standard: 100 |
callback_url | String | Optional | Optionale Callback-Adresse, die nach Abschluss eines asynchronen Tasks aufgerufen wird. |
Request-Beispiel
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": "Generate a polished product campaign image with crisp typography and balanced composition",
"size": "auto",
"resolution": "1K",
"quality": "auto",
"n": 1
}'Response-Beispiel
{
"task_id": "task_abc123",
"status": "pending",
"poll_url": "/v1/tasks/task_abc123",
"request_id": "req_abc123",
"credits": {
"reserved": 1000
}
}Dieser Endpunkt ist asynchron: Nach dem Request wird sofort task_id zurückgegeben. Frage den Task-Status-Endpunkt per Polling ab, bis status succeeded ist, und lies danach result. Generierte Medienlinks sind 24 Stunden gültig.
APIAny© 2026 APIAny. Alle Rechte vorbehalten.