इमेज जनरेशन टास्क सबमिट करें
HTTP 202 के साथ स्थायी task_id लौटाता है। GET /api/v1/images/generations/{task_id} को पोल करें। फ़्लैट input या नेस्टेड input समर्थित है; नेस्टेड input को प्राथमिकता मिलती है। callback फ़ील्ड अनदेखे किए जाते हैं। क्षमताएँ और input पैरामीटर कॉन्फ़िगर किए गए मॉडल और चैनल पर निर्भर करते हैं।
- टाइप: stringX
- Request - Id वैकल्पिक caller request ID, जो डायग्नोस्टिक्स के लिए वापस भेजी जाती है।
- टाइप: stringX
- Felo - Channel क्रमबद्ध, कॉमा से अलग किए गए सार्वजनिक चैनल कोड। default का उपयोग करने के लिए यह header छोड़ दें; default अकेले ही इस्तेमाल होना चाहिए। वॉलेट मोड में, default मॉडल के प्रभावी सार्वजनिक चैनल क्रम को उल्टे क्रम में स्कैन करता है, अप्रकाशित या अनुपलब्ध चैनल छोड़ देता है, और पहले उपलब्ध चैनल का प्रोवाइडर चुनता है। इसमें उसी upstream मॉडल ID और service tier वाले उस प्रोवाइडर के उपलब्ध endpoints शामिल होते हैं। स्पष्ट रूप से दिए गए चैनल client द्वारा निर्दिष्ट क्रम में सत्यापित होते हैं; केवल पहले चैनल का प्रोवाइडर समूह सबमिट किया जाता है। अन्य प्रोवाइडर पर स्वचालित fallback नहीं होता। पुराने प्रोवाइडर headers चैनल रूटिंग को ओवरराइड नहीं कर सकते।
मॉडल-विशिष्ट input कॉन्फ़िगर किए गए सार्वजनिक मॉडल प्रोटोकॉल का पालन करता है।
- टाइप: stringmodelआवश्यक
- टाइप: stringaspect
_ratio Output aspect ratio. Supported values depend on the model and channel.
- टाइप: string enumimage
_size Resolution tier for supported Gemini token-priced image models. Available tiers depend on the model and channel.
मान- 512
- 1
K - 2
K - 4
K
- टाइप: objectinput
वैकल्पिक नेस्टेड input; फ़्लैट input पर प्राथमिकता लेता है।
- inputटाइप: array object[]
_references Reference images by URL/data URI or uploaded Felo file_id. At most 100 Felo references and 50,000,000 bytes per request; model/channel limits may be lower. Keep files until completion.
- image
_url आवश्यक- urlटाइप: stringन्यूनतम लंबाई:1आवश्यक
- टाइप: string
- fileटाइप: string
_id अधिकतम लंबाई:80Uploaded Felo file owned by the authenticated user.
- typeenumconst:image_urlआवश्यकमान
- image
_url
- serviceटाइप: string | null
_tier फ़िलहाल केवल default (standard) समर्थित है। छोड़ा गया, null, उपनाम और असमर्थित स्ट्रिंग्स default पर fallback करते हैं; अन्य प्रकार HTTP 400 लौटाते हैं। कॉन्फ़िगर किए गए चैनल और कीमतें अपरिवर्तित रहती हैं। Text API प्रोवाइडर का standard मान भेजते हैं; Decisions और जनरेशन API upstream फ़ील्ड छोड़ देते हैं।
- propertyटाइप: anything
Name
- टाइप: array object[]input
_references Reference images by URL/data URI or uploaded Felo file_id. At most 100 Felo references and 50,000,000 bytes per request; model/channel limits may be lower. Keep files until completion.
- image
_url आवश्यक- urlटाइप: stringन्यूनतम लंबाई:1आवश्यक
- टाइप: string
- fileटाइप: string
_id अधिकतम लंबाई:80Uploaded Felo file owned by the authenticated user.
- typeenumconst:image_urlआवश्यकमान
- image
_url
- टाइप: integern
Integer numbers.
- टाइप: stringprompt
- टाइप: stringquality
Model-specific quality or resolution tier. For supported Gemini token-priced models, auto/low map to 1K, medium to 2K and high to 4K, subject to model capabilities. Explicit image_size or resolution takes precedence over these labels. Estimated reservations do not replace actual usage billing.
- टाइप: stringresolution
Resolution tier; must agree with image_size when both are supplied.
- टाइप: string | nullservice
_tier फ़िलहाल केवल default (standard) समर्थित है। छोड़ा गया, null, उपनाम और असमर्थित स्ट्रिंग्स default पर fallback करते हैं; अन्य प्रकार HTTP 400 लौटाते हैं। कॉन्फ़िगर किए गए चैनल और कीमतें अपरिवर्तित रहती हैं। Text API प्रोवाइडर का standard मान भेजते हैं; Decisions और जनरेशन API upstream फ़ील्ड छोड़ देते हैं।
- टाइप: stringsize
Model-specific size. For supported Gemini token-priced image models, pixel dimensions select the nearest supported aspect ratio only; ignored when aspect_ratio is supplied. Use image_size or resolution for the resolution tier.
- टाइप: anythingproperty
Name
- टाइप: object · ImageGenerationAccepted202
टास्क स्वीकार किया गया
- enumkindconst:imageआवश्यकमान
- image
- टाइप: array string[]outputsआवश्यक
टास्क सफल होने तक खाली।
- enumstatusconst:queuedआवश्यकमान
- queued
- टाइप: stringtask
_id आवश्यकपोलिंग के लिए उपयोग करने वाला टास्क ID।
application/json - टाइप: object · GenerationError400
अमान्य request (अज्ञात मॉडल, मिश्रित input मोड, अमान्य फ़ील्ड)
OpenAI-संगत एरर एनवेलप।
- टाइप: objecterror
- messageटाइप: stringआवश्यक
- typeटाइप: string enumआवश्यकमान
- invalid
_request _error - server
_error
- codeटाइप: string
- paramटाइप: string null स्वीकार्य
application/json - टाइप: object · GenerationError401
अमान्य या अनुपलब्ध Felo API key
OpenAI-संगत एरर एनवेलप।
- टाइप: objecterror
- messageटाइप: stringआवश्यक
- typeटाइप: string enumआवश्यकमान
- invalid
_request _error - server
_error
- codeटाइप: string
- paramटाइप: string null स्वीकार्य
application/json - टाइप: object · GenerationError402
अपर्याप्त शेष राशि / बिलिंग आवश्यकता पूरी नहीं हुई
OpenAI-संगत एरर एनवेलप।
- टाइप: objecterror
- messageटाइप: stringआवश्यक
- typeटाइप: string enumआवश्यकमान
- invalid
_request _error - server
_error
- codeटाइप: string
- paramटाइप: string null स्वीकार्य
application/json - टाइप: object · GenerationError403
खाते को अनुमति नहीं है (सदस्यता आवश्यक है या उपयोगकर्ता पर प्रतिबंध है)। बंद किए गए मॉडल भी upstream कॉल से पहले अस्वीकार कर दिए जाते हैं। पहले से स्वीकृत requests और टास्क जारी रहते हैं।
OpenAI-संगत एरर एनवेलप।
- टाइप: objecterror
- messageटाइप: stringआवश्यक
- typeटाइप: string enumआवश्यकमान
- invalid
_request _error - server
_error
- codeटाइप: string
- paramटाइप: string null स्वीकार्य
application/json - टाइप: object · GenerationError429
request या खर्च सीमा पूरी हो गई
OpenAI-संगत एरर एनवेलप।
- टाइप: objecterror
- messageटाइप: stringआवश्यक
- typeटाइप: string enumआवश्यकमान
- invalid
_request _error - server
_error
- codeटाइप: string
- paramटाइप: string null स्वीकार्य
application/json - टाइप: object · GenerationError502
upstream प्रोवाइडर विफल रहा
OpenAI-संगत एरर एनवेलप।
- टाइप: objecterror
- messageटाइप: stringआवश्यक
- typeटाइप: string enumआवश्यकमान
- invalid
_request _error - server
_error
- codeटाइप: string
- paramटाइप: string null स्वीकार्य
application/json - टाइप: object · GenerationError503
जनरेशन सेवा या बिलिंग सेवा अस्थायी रूप से उपलब्ध नहीं है
OpenAI-संगत एरर एनवेलप।
- टाइप: objecterror
- messageटाइप: stringआवश्यक
- typeटाइप: string enumआवश्यकमान
- invalid
_request _error - server
_error
- codeटाइप: string
- paramटाइप: string null स्वीकार्य
application/json
curl https://openapi.felo.ai/api/v1/images/generations \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"model": "configured-image-model",
"prompt": "a cat"
}'
{
"task_id": "string",
"status": "queued",
"kind": "image",
"outputs": [
"string"
]
}