openapi: 3.2.0 info: title: Eden Ai Chat API version: '1.0' description: 'Operations tagged Chat across 4 of this provider''s published API definitions: eden-ai-llm-features-openapi.json, eden-ai-multimodal-features-openapi.json, eden-ai-text-features-openapi.json, eden-ai-v3-openapi.json. Each path carries the servers of the definition it was published in.' servers: - url: https://api.edenai.run/v2 - url: https://api.edenai.run description: Production server tags: - name: Chat paths: /llm/chat/: post: operationId: llm_chat_create description: 'Available Providers |Provider|Model|Version|Price|Billing unit| |----|----|-------|-----|------------| |**amazon**|**amazon.nova-lite-v1:0**|`llmengine (v2)`|0.24 (per 1000000 token)|1 token |**amazon**|**amazon.nova-micro-v1:0**|`llmengine (v2)`|0.14 (per 1000000 token)|1 token |**amazon**|**amazon.nova-pro-v1:0**|`llmengine (v2)`|3.2 (per 1000000 token)|1 token |**anthropic**|**claude-opus-4-6**|`v1`|5e-06 (per 1 token)|1 token |**anthropic**|**claude-sonnet-4-20250514**|`v1`|1.5e-05 (per 1 token)|1 token |**anthropic**|**claude-opus-4-1-20250805**|`v1`|7.5e-05 (per 1 token)|1 token |**anthropic**|**claude-opus-4-5**|`v1`|2.5e-05 (per 1 token)|1 token |**anthropic**|**claude-3-7-sonnet-latest**|`v1`|1.5e-05 (per 1 token)|1 token |**anthropic**|**claude-3-5-haiku-20241022**|`v1`|4e-06 (per 1 token)|1 token |**anthropic**|**claude-3-5-haiku-latest**|`v1`|5e-06 (per 1 token)|1 token |**anthropic**|**claude-haiku-4-5-20251001**|`v1`|5e-06 (per 1 token)|1 token |**anthropic**|**claude-haiku-4-5**|`v1`|5e-06 (per 1 token)|1 token |**anthropic**|**claude-3-7-sonnet-20250219**|`v1`|1.5e-05 (per 1 token)|1 token |**anthropic**|**claude-3-haiku-20240307**|`v1`|1.25e-06 (per 1 token)|1 token |**anthropic**|**claude-4-opus-20250514**|`v1`|7.5e-05 (per 1 token)|1 token |**anthropic**|**claude-4-sonnet-20250514**|`v1`|1.5e-05 (per 1 token)|1 token |**anthropic**|**claude-sonnet-4-5**|`v1`|1.5e-05 (per 1 token)|1 token |**anthropic**|**claude-sonnet-4-5-20250929**|`v1`|1.5e-05 (per 1 token)|1 token |**anthropic**|**claude-opus-4-1**|`v1`|7.5e-05 (per 1 token)|1 token |**anthropic**|**claude-opus-4-20250514**|`v1`|7.5e-05 (per 1 token)|1 token |**anthropic**|**claude-opus-4-5-20251101**|`v1`|2.5e-05 (per 1 token)|1 token |**cohere**|**command-r7b-12-2024**|`llmengine (v2)`|0.15 (per 1000000 token)|1 token |**cohere**|**command-r-08-2024**|`llmengine (v2)`|0.6 (per 1000000 token)|1 token |**deepseek**|**deepseek-chat**|`llmengine (v2)`|1.1e-06 (per 1 token)|1 token |**deepseek**|**deepseek-reasoner**|`llmengine (v2)`|2.19e-06 (per 1 token)|1 token |**deepseek**|**deepseek-coder**|`llmengine (v2)`|2.8e-07 (per 1 token)|1 token |**meta**|**meta.llama3-1-405b-instruct-v1:0**|`llmengine (v2)`|2.4 (per 1000000 token)|1 token |**meta**|**meta.llama3-1-70b-instruct-v1:0**|`llmengine (v2)`|0.72 (per 1000000 token)|1 token |**meta**|**meta.llama3-1-8b-instruct-v1:0**|`llmengine (v2)`|0.22 (per 1000000 token)|1 token |**mistral**|**magistral-medium-2506**|`llmengine (v2)`|5e-06 (per 1 token)|1 token |**mistral**|**magistral-small-2506**|`llmengine (v2)`|1.5e-06 (per 1 token)|1 token |**mistral**|**mistral-medium-latest**|`llmengine (v2)`|2e-06 (per 1 token)|1 token |**mistral**|**pixtral-large-latest**|`llmengine (v2)`|6e-06 (per 1 token)|1 token |**mistral**|**mistral-small-latest**|`llmengine (v2)`|3e-07 (per 1 token)|1 token |**mistral**|**codestral-latest**|`llmengine (v2)`|3e-06 (per 1 token)|1 token |**mistral**|**mistral-large-latest**|`llmengine (v2)`|6e-06 (per 1 token)|1 token |**mistral**|**codestral-2405**|`llmengine (v2)`|3e-06 (per 1 token)|1 token |**mistral**|**codestral-2508**|`llmengine (v2)`|9e-07 (per 1 token)|1 token |**mistral**|**devstral-medium-2507**|`llmengine (v2)`|2e-06 (per 1 token)|1 token |**mistral**|**devstral-small-2505**|`llmengine (v2)`|3e-07 (per 1 token)|1 token |**mistral**|**devstral-small-2507**|`llmengine (v2)`|3e-07 (per 1 token)|1 token |**mistral**|**labs-devstral-small-2512**|`llmengine (v2)`|3e-07 (per 1 token)|1 token |**mistral**|**devstral-2512**|`llmengine (v2)`|2e-06 (per 1 token)|1 token |**mistral**|**magistral-medium-2509**|`llmengine (v2)`|5e-06 (per 1 token)|1 token |**mistral**|**magistral-medium-latest**|`llmengine (v2)`|5e-06 (per 1 token)|1 token |**mistral**|**magistral-small-latest**|`llmengine (v2)`|1.5e-06 (per 1 token)|1 token |**mistral**|**mistral-large-2402**|`llmengine (v2)`|1.2e-05 (per 1 token)|1 token |**mistral**|**mistral-large-2407**|`llmengine (v2)`|9e-06 (per 1 token)|1…' summary: Chat tags: - Chat requestBody: content: application/json: schema: $ref: '#/components/schemas/llmchatllmchatChatRequest' examples: RequestExample: value: providers: together_ai,qwen,bytedance,anthropic,minimax,cohere,openai,xai,databricks,perplexityai,azure,deepinfra,nebius,ovhcloud,fireworks_ai,lilac,scaleway,compactifai,google,groq,cloudflare,meta,deepseek,vertex,mistral,amazon,microsoft,moonshot,flexai,infomaniak,ionos,xiaomi,zai,cerebras,tensorx model: gpt-4o-mini messages: - role: system content: Always reply like a pirate - role: user content: - type: text text: Describe this image please! - type: image_url image_url: url: https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg temperature: 0 max_tokens: 200 stop_sequences: [] top_k: 0 top_p: 0 summary: Request Example required: true security: - FeatureApiAuth: [] responses: '200': content: application/json: schema: $ref: '#/components/schemas/llmchatResponseModel' examples: ResponseExample: value: together_ai/gpt-4o-mini-2024-07-18: id: chatcmpl-B71qqu4Y7m1ZVuF5YGqxz7LXzgf0Y created: 1741015112 object: chat.completion system_fingerprint: fp_7fcd609668 choices: - finish_reason: stop index: 0 message: content: Arrr, matey! What ye be seein’ in this here image is a grand pathway, made of wooden planks, weavin' its way through a lush and green landscape. The verdant grass sways in the gentle breeze, and the sky above be a brilliant blue, decorated with fluffy white clouds. Ye can spot trees and bushes on either side, makin' it a perfect setting for a stroll amongst nature. A peaceful place for a pirate at heart, aye! role: assistant tool_calls: null function_call: null provider_time: 3692885792 edenai_time: null usage: completion_tokens: 99 prompt_tokens: 1170 total_tokens: 1269 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: 99 prompt_tokens_details: audio_tokens: 0 cached_tokens: 1024 text_tokens: null image_tokens: null service_tier: default cost: 0.0 qwen/gpt-4o-mini-2024-07-18: id: chatcmpl-B71qqu4Y7m1ZVuF5YGqxz7LXzgf0Y created: 1741015112 object: chat.completion system_fingerprint: fp_7fcd609668 choices: - finish_reason: stop index: 0 message: content: Arrr, matey! What ye be seein’ in this here image is a grand pathway, made of wooden planks, weavin' its way through a lush and green landscape. The verdant grass sways in the gentle breeze, and the sky above be a brilliant blue, decorated with fluffy white clouds. Ye can spot trees and bushes on either side, makin' it a perfect setting for a stroll amongst nature. A peaceful place for a pirate at heart, aye! role: assistant tool_calls: null function_call: null provider_time: 3692885792 edenai_time: null usage: completion_tokens: 99 prompt_tokens: 1170 total_tokens: 1269 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: 99 prompt_tokens_details: audio_tokens: 0 cached_tokens: 1024 text_tokens: null image_tokens: null service_tier: default cost: 0.0 bytedance/gpt-4o-mini-2024-07-18: id: chatcmpl-B71qqu4Y7m1ZVuF5YGqxz7LXzgf0Y created: 1741015112 object: chat.completion system_fingerprint: fp_7fcd609668 choices: - finish_reason: stop index: 0 message: content: Arrr, matey! What ye be seein’ in this here image is a grand pathway, made of wooden planks, weavin' its way through a lush and green landscape. The verdant grass sways in the gentle breeze, and the sky above be a brilliant blue, decorated with fluffy white clouds. Ye can spot trees and bushes on either side, makin' it a perfect setting for a stroll amongst nature. A peaceful place for a pirate at heart, aye! role: assistant tool_calls: null function_call: null provider_time: 3692885792 edenai_time: null usage: completion_tokens: 99 prompt_tokens: 1170 total_tokens: 1269 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: 99 prompt_tokens_details: audio_tokens: 0 cached_tokens: 1024 text_tokens: null image_tokens: null service_tier: default cost: 0.0 anthropic/gpt-4o-mini-2024-07-18: id: chatcmpl-B71qqu4Y7m1ZVuF5YGqxz7LXzgf0Y created: 1741015112 object: chat.completion system_fingerprint: fp_7fcd609668 choices: - finish_reason: stop index: 0 message: content: Arrr, matey! What ye be seein’ in this here image is a grand pathway, made of wooden planks, weavin' its way through a lush and green landscape. The verdant grass sways in the gentle breeze, and the sky above be a brilliant blue, decorated with fluffy white clouds. Ye can spot trees and bushes on either side, makin' it a perfect setting for a stroll amongst nature. A peaceful place for a pirate at heart, aye! role: assistant tool_calls: null function_call: null provider_time: 3692885792 edenai_time: null usage: completion_tokens: 99 prompt_tokens: 1170 total_tokens: 1269 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: 99 prompt_tokens_details: audio_tokens: 0 cached_tokens: 1024 text_tokens: null image_tokens: null service_tier: default cost: 0.0 minimax/gpt-4o-mini-2024-07-18: id: chatcmpl-B71qqu4Y7m1ZVuF5YGqxz7LXzgf0Y created: 1741015112 object: chat.completion system_fingerprint: fp_7fcd609668 choices: - finish_reason: stop index: 0 message: content: Arrr, matey! What ye be seein’ in this here image is a grand pathway, made of wooden planks, weavin' its way through a lush and green landscape. The verdant grass sways in the gentle breeze, and the sky above be a brilliant blue, decorated with fluffy white clouds. Ye can spot trees and bushes on either side, makin' it a perfect setting for a stroll amongst nature. A peaceful place for a pirate at heart, aye! role: assistant tool_calls: null function_call: null provider_time: 3692885792 edenai_time: null usage: completion_tokens: 99 prompt_tokens: 1170 total_tokens: 1269 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: 99 prompt_tokens_details: audio_tokens: 0 cached_tokens: 1024 text_tokens: null image_tokens: null service_tier: default cost: 0.0 cohere/gpt-4o-mini-2024-07-18: id: chatcmpl-B71RkHwax2QEWCrZXYl3mZh20fC5y created: 1741013556 object: chat.completion system_fingerprint: fp_7fcd609668 choices: - finish_reason: stop index: 0 message: content: Arrr matey! In this fine image, ye be seein' a wooden pathway leadin' through a grand expanse of green grass and wild foliage. The sky above be painted in shades of blue, with fluffy clouds driftin' lazily. The boardwalk be settin' sail through this scenic wonder, invitin' ye to wander and explore the treasures of nature that lie ahead. Aye, 'tis a sight to behold for any landlubber or sea dog! role: assistant tool_calls: null function_call: null provider_time: 3751955066 edenai_time: null usage: completion_tokens: 100 prompt_tokens: 1170 total_tokens: 1270 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: null prompt_tokens_details: audio_tokens: 0 cached_tokens: 0 text_tokens: null image_tokens: null service_tier: default cost: 0.0 openai/gpt-4o-mini-2024-07-18: id: chatcmpl-B71qqu4Y7m1ZVuF5YGqxz7LXzgf0Y created: 1741015112 object: chat.completion system_fingerprint: fp_7fcd609668 choices: - finish_reason: stop index: 0 message: content: Arrr, matey! What ye be seein’ in this here image is a grand pathway, made of wooden planks, weavin' its way through a lush and green landscape. The verdant grass sways in the gentle breeze, and the sky above be a brilliant blue, decorated with fluffy white clouds. Ye can spot trees and bushes on either side, makin' it a perfect setting for a stroll amongst nature. A peaceful place for a pirate at heart, aye! role: assistant tool_calls: null function_call: null provider_time: 3692885792 edenai_time: null usage: completion_tokens: 99 prompt_tokens: 1170 total_tokens: 1269 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: 99 prompt_tokens_details: audio_tokens: 0 cached_tokens: 1024 text_tokens: null image_tokens: null service_tier: default cost: 0.0 xai/gpt-4o-mini-2024-07-18: id: chatcmpl-B71qqu4Y7m1ZVuF5YGqxz7LXzgf0Y created: 1741015112 object: chat.completion system_fingerprint: fp_7fcd609668 choices: - finish_reason: stop index: 0 message: content: Arrr, matey! What ye be seein’ in this here image is a grand pathway, made of wooden planks, weavin' its way through a lush and green landscape. The verdant grass sways in the gentle breeze, and the sky above be a brilliant blue, decorated with fluffy white clouds. Ye can spot trees and bushes on either side, makin' it a perfect setting for a stroll amongst nature. A peaceful place for a pirate at heart, aye! role: assistant tool_calls: null function_call: null provider_time: 3692885792 edenai_time: null usage: completion_tokens: 99 prompt_tokens: 1170 total_tokens: 1269 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: 99 prompt_tokens_details: audio_tokens: 0 cached_tokens: 1024 text_tokens: null image_tokens: null service_tier: default cost: 0.0 databricks/gpt-4o-mini-2024-07-18: id: chatcmpl-B71qqu4Y7m1ZVuF5YGqxz7LXzgf0Y created: 1741015112 object: chat.completion system_fingerprint: fp_7fcd609668 choices: - finish_reason: stop index: 0 message: content: Arrr, matey! What ye be seein’ in this here image is a grand pathway, made of wooden planks, weavin' its way through a lush and green landscape. The verdant grass sways in the gentle breeze, and the sky above be a brilliant blue, decorated with fluffy white clouds. Ye can spot trees and bushes on either side, makin' it a perfect setting for a stroll amongst nature. A peaceful place for a pirate at heart, aye! role: assistant tool_calls: null function_call: null provider_time: 3692885792 edenai_time: null usage: completion_tokens: 99 prompt_tokens: 1170 total_tokens: 1269 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: 99 prompt_tokens_details: audio_tokens: 0 cached_tokens: 1024 text_tokens: null image_tokens: null service_tier: default cost: 0.0 perplexityai/gpt-4o-mini-2024-07-18: id: chatcmpl-B71qqu4Y7m1ZVuF5YGqxz7LXzgf0Y created: 1741015112 object: chat.completion system_fingerprint: fp_7fcd609668 choices: - finish_reason: stop index: 0 message: content: Arrr, matey! What ye be seein’ in this here image is a grand pathway, made of wooden planks, weavin' its way through a lush and green landscape. The verdant grass sways in the gentle breeze, and the sky above be a brilliant blue, decorated with fluffy white clouds. Ye can spot trees and bushes on either side, makin' it a perfect setting for a stroll amongst nature. A peaceful place for a pirate at heart, aye! role: assistant tool_calls: null function_call: null provider_time: 3692885792 edenai_time: null usage: completion_tokens: 99 prompt_tokens: 1170 total_tokens: 1269 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: 99 prompt_tokens_details: audio_tokens: 0 cached_tokens: 1024 text_tokens: null image_tokens: null service_tier: default cost: 0.0 azure/gpt-4o-mini-2024-07-18: id: chatcmpl-B71qqu4Y7m1ZVuF5YGqxz7LXzgf0Y created: 1741015112 object: chat.completion system_fingerprint: fp_7fcd609668 choices: - finish_reason: stop index: 0 message: content: Arrr, matey! What ye be seein’ in this here image is a grand pathway, made of wooden planks, weavin' its way through a lush and green landscape. The verdant grass sways in the gentle breeze, and the sky above be a brilliant blue, decorated with fluffy white clouds. Ye can spot trees and bushes on either side, makin' it a perfect setting for a stroll amongst nature. A peaceful place for a pirate at heart, aye! role: assistant tool_calls: null function_call: null provider_time: 3692885792 edenai_time: null usage: completion_tokens: 99 prompt_tokens: 1170 total_tokens: 1269 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: 99 prompt_tokens_details: audio_tokens: 0 cached_tokens: 1024 text_tokens: null image_tokens: null service_tier: default cost: 0.0 deepinfra/gpt-4o-mini-2024-07-18: id: chatcmpl-B71qqu4Y7m1ZVuF5YGqxz7LXzgf0Y created: 1741015112 object: chat.completion system_fingerprint: fp_7fcd609668 choices: - finish_reason: stop index: 0 message: content: Arrr, matey! What ye be seein’ in this here image is a grand pathway, made of wooden planks, weavin' its way through a lush and green landscape. The verdant grass sways in the gentle breeze, and the sky above be a brilliant blue, decorated with fluffy white clouds. Ye can spot trees and bushes on either side, makin' it a perfect setting for a stroll amongst nature. A peaceful place for a pirate at heart, aye! role: assistant tool_calls: null function_call: null provider_time: 3692885792 edenai_time: null usage: completion_tokens: 99 prompt_tokens: 1170 total_tokens: 1269 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: 99 prompt_tokens_details: audio_tokens: 0 cached_tokens: 1024 text_tokens: null image_tokens: null service_tier: default cost: 0.0 nebius/gpt-4o-mini-2024-07-18: id: chatcmpl-B71qqu4Y7m1ZVuF5YGqxz7LXzgf0Y created: 1741015112 object: chat.completion system_fingerprint: fp_7fcd609668 choices: - finish_reason: stop index: 0 message: content: Arrr, matey! What ye be seein’ in this here image is a grand pathway, made of wooden planks, weavin' its way through a lush and green landscape. The verdant grass sways in the gentle breeze, and the sky above be a brilliant blue, decorated with fluffy white clouds. Ye can spot trees and bushes on either side, makin' it a perfect setting for a stroll amongst nature. A peaceful place for a pirate at heart, aye! role: assistant tool_calls: null function_call: null provider_time: 3692885792 edenai_time: null usage: completion_tokens: 99 prompt_tokens: 1170 total_tokens: 1269 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: 99 prompt_tokens_details: audio_tokens: 0 cached_tokens: 1024 text_tokens: null image_tokens: null service_tier: default cost: 0.0 ovhcloud/gpt-4o-mini-2024-07-18: id: chatcmpl-B71qqu4Y7m1ZVuF5YGqxz7LXzgf0Y created: 1741015112 object: chat.completion system_fingerprint: fp_7fcd609668 choices: - finish_reason: stop index: 0 message: content: Arrr, matey! What ye be seein’ in this here image is a grand pathway, made of wooden planks, weavin' its way through a lush and green landscape. The verdant grass sways in the gentle breeze, and the sky above be a brilliant blue, decorated with fluffy white clouds. Ye can spot trees and bushes on either side, makin' it a perfect setting for a stroll amongst nature. A peaceful place for a pirate at heart, aye! role: assistant tool_calls: null function_call: null provider_time: 3692885792 edenai_time: null usage: completion_tokens: 99 prompt_tokens: 1170 total_tokens: 1269 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: 99 prompt_tokens_details: audio_tokens: 0 cached_tokens: 1024 text_tokens: null image_tokens: null service_tier: default cost: 0.0 fireworks_ai/fireworks_ai/accounts/fireworks/models/minimax-m2p1: id: 92c68e43-c433-4ded-9d2a-e1ad314e34ce created: 1769078717 object: chat.completion system_fingerprint: null choices: - finish_reason: stop index: 0 message: content: "Hello! I'm MiniMax-M2.1, nice to meet you! \n\nI'm here and ready to help with whatever you need - whether that's coding, answering questions, brainstorming ideas, writing, analyzing information, or just having a conversation.\n\nWhat can I assist you with today?" role: assistant tool_calls: null function_call: null provider_time: 5499940850 edenai_time: null usage: completion_tokens: 144 prompt_tokens: 38 total_tokens: 182 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: null prompt_tokens_details: audio_tokens: null cached_tokens: 0 text_tokens: null image_tokens: null service_tier: null cost: 0.0 lilac/moonshotai/kimi-k2.6: id: chatcmpl-8e650c36-0ac6-4297-be14-05ed2b75c123 created: 1779719760 object: chat.completion system_fingerprint: null choices: - finish_reason: length index: 0 message: content: ' I think you might have my' role: assistant tool_calls: null function_call: null provider_time: 3326167884 edenai_time: null usage: completion_tokens: 200 prompt_tokens: 17 total_tokens: 217 completion_tokens_details: accepted_prediction_tokens: null audio_tokens: null reasoning_tokens: 0 rejected_prediction_tokens: null text_tokens: null prompt_tokens_details: audio_tokens: null cached_tokens: 0 text_tokens: null image_tokens: null service_tier: null cost: 0.0 scaleway/moonshotai/kimi-k2.6: id: chatcmpl-8e650c36-0ac6-4297-be14-05ed2b75c123 created: 1779719760 object: chat.completion system_fingerprint: null choices: - finish_reason: length index: 0 message: content: ' I think you might have my' role: assistant tool_calls: null function_call: null provider_time: 3326167884 edenai_time: null usage: completion_tokens: 200 prompt_tokens: 17 total_tokens: 217 completion_tokens_details: accepted_prediction_tokens: null audio_tokens: null reasoning_tokens: 0 rejected_prediction_tokens: null text_tokens: null prompt_tokens_details: audio_tokens: null cached_tokens: 0 text_tokens: null image_tokens: null service_tier: null cost: 0.0 compactifai/quasar-438b: id: chatcmpl-7c2a1f04-9b3d-4e6a-8f21-1d5c9a4e2b70 created: 1772712000 object: chat.completion system_fingerprint: null choices: - finish_reason: stop index: 0 message: content: Hello. How can I help you today? role: assistant tool_calls: null function_call: null provider_time: 31284551200 edenai_time: null usage: completion_tokens: 140 prompt_tokens: 36 total_tokens: 176 completion_tokens_details: accepted_prediction_tokens: null audio_tokens: null reasoning_tokens: 130 rejected_prediction_tokens: null text_tokens: null prompt_tokens_details: audio_tokens: null cached_tokens: 0 text_tokens: null image_tokens: null service_tier: null cost: 0.0 google/gpt-4o-mini-2024-07-18: id: chatcmpl-B71qqu4Y7m1ZVuF5YGqxz7LXzgf0Y created: 1741015112 object: chat.completion system_fingerprint: fp_7fcd609668 choices: - finish_reason: stop index: 0 message: content: Arrr, matey! What ye be seein’ in this here image is a grand pathway, made of wooden planks, weavin' its way through a lush and green landscape. The verdant grass sways in the gentle breeze, and the sky above be a brilliant blue, decorated with fluffy white clouds. Ye can spot trees and bushes on either side, makin' it a perfect setting for a stroll amongst nature. A peaceful place for a pirate at heart, aye! role: assistant tool_calls: null function_call: null provider_time: 3692885792 edenai_time: null usage: completion_tokens: 99 prompt_tokens: 1170 total_tokens: 1269 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: 99 prompt_tokens_details: audio_tokens: 0 cached_tokens: 1024 text_tokens: null image_tokens: null service_tier: default cost: 0.0 groq/gpt-4o-mini-2024-07-18: id: chatcmpl-B71qqu4Y7m1ZVuF5YGqxz7LXzgf0Y created: 1741015112 object: chat.completion system_fingerprint: fp_7fcd609668 choices: - finish_reason: stop index: 0 message: content: Arrr, matey! What ye be seein’ in this here image is a grand pathway, made of wooden planks, weavin' its way through a lush and green landscape. The verdant grass sways in the gentle breeze, and the sky above be a brilliant blue, decorated with fluffy white clouds. Ye can spot trees and bushes on either side, makin' it a perfect setting for a stroll amongst nature. A peaceful place for a pirate at heart, aye! role: assistant tool_calls: null function_call: null provider_time: 3692885792 edenai_time: null usage: completion_tokens: 99 prompt_tokens: 1170 total_tokens: 1269 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: 99 prompt_tokens_details: audio_tokens: 0 cached_tokens: 1024 text_tokens: null image_tokens: null service_tier: default cost: 0.0 cloudflare/cloudflare/@cf/meta/llama-2-7b-chat-fp16: id: chatcmpl-40da733f-4466-470d-85aa-575cf1b58abd created: 1769088979 object: chat.completion system_fingerprint: null choices: - finish_reason: stop index: 0 message: content: ' Hello! It''s nice to meet you. Is there something I can help you with or would you like to chat?' role: assistant tool_calls: null function_call: null provider_time: 2623900184 edenai_time: null usage: completion_tokens: 25 prompt_tokens: 10 total_tokens: 35 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: null prompt_tokens_details: audio_tokens: 0 cached_tokens: 0 text_tokens: null image_tokens: null service_tier: null cost: 0.0 meta/gpt-4o-mini-2024-07-18: id: chatcmpl-B71qqu4Y7m1ZVuF5YGqxz7LXzgf0Y created: 1741015112 object: chat.completion system_fingerprint: fp_7fcd609668 choices: - finish_reason: stop index: 0 message: content: Arrr, matey! What ye be seein’ in this here image is a grand pathway, made of wooden planks, weavin' its way through a lush and green landscape. The verdant grass sways in the gentle breeze, and the sky above be a brilliant blue, decorated with fluffy white clouds. Ye can spot trees and bushes on either side, makin' it a perfect setting for a stroll amongst nature. A peaceful place for a pirate at heart, aye! role: assistant tool_calls: null function_call: null provider_time: 3692885792 edenai_time: null usage: completion_tokens: 99 prompt_tokens: 1170 total_tokens: 1269 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: 99 prompt_tokens_details: audio_tokens: 0 cached_tokens: 1024 text_tokens: null image_tokens: null service_tier: default cost: 0.0 deepseek/gpt-4o-mini-2024-07-18: id: chatcmpl-B71qqu4Y7m1ZVuF5YGqxz7LXzgf0Y created: 1741015112 object: chat.completion system_fingerprint: fp_7fcd609668 choices: - finish_reason: stop index: 0 message: content: Arrr, matey! What ye be seein’ in this here image is a grand pathway, made of wooden planks, weavin' its way through a lush and green landscape. The verdant grass sways in the gentle breeze, and the sky above be a brilliant blue, decorated with fluffy white clouds. Ye can spot trees and bushes on either side, makin' it a perfect setting for a stroll amongst nature. A peaceful place for a pirate at heart, aye! role: assistant tool_calls: null function_call: null provider_time: 3692885792 edenai_time: null usage: completion_tokens: 99 prompt_tokens: 1170 total_tokens: 1269 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: 99 prompt_tokens_details: audio_tokens: 0 cached_tokens: 1024 text_tokens: null image_tokens: null service_tier: default cost: 0.0 vertex/gpt-4o-mini-2024-07-18: id: chatcmpl-B71qqu4Y7m1ZVuF5YGqxz7LXzgf0Y created: 1741015112 object: chat.completion system_fingerprint: fp_7fcd609668 choices: - finish_reason: stop index: 0 message: content: Arrr, matey! What ye be seein’ in this here image is a grand pathway, made of wooden planks, weavin' its way through a lush and green landscape. The verdant grass sways in the gentle breeze, and the sky above be a brilliant blue, decorated with fluffy white clouds. Ye can spot trees and bushes on either side, makin' it a perfect setting for a stroll amongst nature. A peaceful place for a pirate at heart, aye! role: assistant tool_calls: null function_call: null provider_time: 3692885792 edenai_time: null usage: completion_tokens: 99 prompt_tokens: 1170 total_tokens: 1269 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: 99 prompt_tokens_details: audio_tokens: 0 cached_tokens: 1024 text_tokens: null image_tokens: null service_tier: default cost: 0.0 mistral/gpt-4o-mini-2024-07-18: id: chatcmpl-B71qqu4Y7m1ZVuF5YGqxz7LXzgf0Y created: 1741015112 object: chat.completion system_fingerprint: fp_7fcd609668 choices: - finish_reason: stop index: 0 message: content: Arrr, matey! What ye be seein’ in this here image is a grand pathway, made of wooden planks, weavin' its way through a lush and green landscape. The verdant grass sways in the gentle breeze, and the sky above be a brilliant blue, decorated with fluffy white clouds. Ye can spot trees and bushes on either side, makin' it a perfect setting for a stroll amongst nature. A peaceful place for a pirate at heart, aye! role: assistant tool_calls: null function_call: null provider_time: 3692885792 edenai_time: null usage: completion_tokens: 99 prompt_tokens: 1170 total_tokens: 1269 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: 99 prompt_tokens_details: audio_tokens: 0 cached_tokens: 1024 text_tokens: null image_tokens: null service_tier: default cost: 0.0 amazon/gpt-4o-mini-2024-07-18: id: chatcmpl-B71qqu4Y7m1ZVuF5YGqxz7LXzgf0Y created: 1741015112 object: chat.completion system_fingerprint: fp_7fcd609668 choices: - finish_reason: stop index: 0 message: content: Arrr, matey! What ye be seein’ in this here image is a grand pathway, made of wooden planks, weavin' its way through a lush and green landscape. The verdant grass sways in the gentle breeze, and the sky above be a brilliant blue, decorated with fluffy white clouds. Ye can spot trees and bushes on either side, makin' it a perfect setting for a stroll amongst nature. A peaceful place for a pirate at heart, aye! role: assistant tool_calls: null function_call: null provider_time: 3692885792 edenai_time: null usage: completion_tokens: 99 prompt_tokens: 1170 total_tokens: 1269 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: 99 prompt_tokens_details: audio_tokens: 0 cached_tokens: 1024 text_tokens: null image_tokens: null service_tier: default cost: 0.0 microsoft/gpt-4o-mini-2024-07-18: id: chatcmpl-B71qqu4Y7m1ZVuF5YGqxz7LXzgf0Y created: 1741015112 object: chat.completion system_fingerprint: fp_7fcd609668 choices: - finish_reason: stop index: 0 message: content: Arrr, matey! What ye be seein’ in this here image is a grand pathway, made of wooden planks, weavin' its way through a lush and green landscape. The verdant grass sways in the gentle breeze, and the sky above be a brilliant blue, decorated with fluffy white clouds. Ye can spot trees and bushes on either side, makin' it a perfect setting for a stroll amongst nature. A peaceful place for a pirate at heart, aye! role: assistant tool_calls: null function_call: null provider_time: 3692885792 edenai_time: null usage: completion_tokens: 99 prompt_tokens: 1170 total_tokens: 1269 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: 99 prompt_tokens_details: audio_tokens: 0 cached_tokens: 1024 text_tokens: null image_tokens: null service_tier: default cost: 0.0 moonshot/moonshot/kimi-k2-0905-preview: id: chatcmpl-6f0c1d5a-2b47-4e0e-9c2a-1f7d3a9b8e10 created: 1769086004 object: chat.completion system_fingerprint: null choices: - finish_reason: stop index: 0 message: content: Hello. How can I help you today? role: assistant tool_calls: null function_call: null provider_time: 468793209 edenai_time: null usage: completion_tokens: 10 prompt_tokens: 36 total_tokens: 46 completion_tokens_details: accepted_prediction_tokens: null audio_tokens: null reasoning_tokens: 0 rejected_prediction_tokens: null text_tokens: null prompt_tokens_details: audio_tokens: null cached_tokens: 0 text_tokens: null image_tokens: null service_tier: null cost: 0.0 flexai/Meta-Llama-3.1-8B-Instruct-FP8: id: chatcmpl-9f3e1c62-4d51-4bd7-9c1c-2a5b7e3f9a41 created: 1769086500 object: chat.completion system_fingerprint: null choices: - finish_reason: stop index: 0 message: content: Hello. How can I help you today? role: assistant tool_calls: null function_call: null provider_time: 512438901 edenai_time: null usage: completion_tokens: 10 prompt_tokens: 36 total_tokens: 46 completion_tokens_details: accepted_prediction_tokens: null audio_tokens: null reasoning_tokens: 0 rejected_prediction_tokens: null text_tokens: null prompt_tokens_details: audio_tokens: null cached_tokens: 0 text_tokens: null image_tokens: null service_tier: null cost: 0.0 infomaniak/llama3.3: id: chatcmpl-4c6e8f0a-2b3d-4e5f-9a0b-5c7d9e1f3a4b created: 1769086800 object: chat.completion system_fingerprint: null choices: - finish_reason: stop index: 0 message: content: Hello. How can I help you today? role: assistant tool_calls: null function_call: null provider_time: 492731085 edenai_time: null usage: completion_tokens: 10 prompt_tokens: 36 total_tokens: 46 completion_tokens_details: accepted_prediction_tokens: null audio_tokens: null reasoning_tokens: 0 rejected_prediction_tokens: null text_tokens: null prompt_tokens_details: audio_tokens: null cached_tokens: 0 text_tokens: null image_tokens: null service_tier: null cost: 0.0 ionos/meta-llama/Meta-Llama-3.1-8B-Instruct: id: chatcmpl-5b7e0f2a-9d34-4c8a-8e2b-6c1f4a3d9e07 created: 1769086600 object: chat.completion system_fingerprint: null choices: - finish_reason: stop index: 0 message: content: Hello. How can I help you today? role: assistant tool_calls: null function_call: null provider_time: 487213902 edenai_time: null usage: completion_tokens: 10 prompt_tokens: 36 total_tokens: 46 completion_tokens_details: accepted_prediction_tokens: null audio_tokens: null reasoning_tokens: 0 rejected_prediction_tokens: null text_tokens: null prompt_tokens_details: audio_tokens: null cached_tokens: 0 text_tokens: null image_tokens: null service_tier: null cost: 0.0 xiaomi/gpt-4o-mini-2024-07-18: id: chatcmpl-B71qqu4Y7m1ZVuF5YGqxz7LXzgf0Y created: 1741015112 object: chat.completion system_fingerprint: fp_7fcd609668 choices: - finish_reason: stop index: 0 message: content: Arrr, matey! What ye be seein’ in this here image is a grand pathway, made of wooden planks, weavin' its way through a lush and green landscape. The verdant grass sways in the gentle breeze, and the sky above be a brilliant blue, decorated with fluffy white clouds. Ye can spot trees and bushes on either side, makin' it a perfect setting for a stroll amongst nature. A peaceful place for a pirate at heart, aye! role: assistant tool_calls: null function_call: null provider_time: 3692885792 edenai_time: null usage: completion_tokens: 99 prompt_tokens: 1170 total_tokens: 1269 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: 99 prompt_tokens_details: audio_tokens: 0 cached_tokens: 1024 text_tokens: null image_tokens: null service_tier: default cost: 0.0 zai/gpt-4o-mini-2024-07-18: id: chatcmpl-B71qqu4Y7m1ZVuF5YGqxz7LXzgf0Y created: 1741015112 object: chat.completion system_fingerprint: fp_7fcd609668 choices: - finish_reason: stop index: 0 message: content: Arrr, matey! What ye be seein’ in this here image is a grand pathway, made of wooden planks, weavin' its way through a lush and green landscape. The verdant grass sways in the gentle breeze, and the sky above be a brilliant blue, decorated with fluffy white clouds. Ye can spot trees and bushes on either side, makin' it a perfect setting for a stroll amongst nature. A peaceful place for a pirate at heart, aye! role: assistant tool_calls: null function_call: null provider_time: 3692885792 edenai_time: null usage: completion_tokens: 99 prompt_tokens: 1170 total_tokens: 1269 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 text_tokens: 99 prompt_tokens_details: audio_tokens: 0 cached_tokens: 1024 text_tokens: null image_tokens: null service_tier: default cost: 0.0 cerebras/cerebras/llama-3.3-70b: id: chatcmpl-b4b7664b-325f-43d9-95a8-b94028c0d9f7 created: 1769086004 object: chat.completion system_fingerprint: fp_e6a9e35b42fe424f8074 choices: - finish_reason: stop index: 0 message: content: Hello. How can I help you today? role: assistant tool_calls: null function_call: null provider_time: 468793209 edenai_time: null usage: completion_tokens: 10 prompt_tokens: 36 total_tokens: 46 completion_tokens_details: accepted_prediction_tokens: null audio_tokens: null reasoning_tokens: 0 rejected_prediction_tokens: null text_tokens: null prompt_tokens_details: audio_tokens: null cached_tokens: 0 text_tokens: null image_tokens: null service_tier: null cost: 0.0 tensorx/moonshotai/kimi-k3: id: 224be80b91b545f88371ca79693f4030 created: 1786913673 object: chat.completion system_fingerprint: null choices: - finish_reason: stop index: 0 message: content: Hello! I’m doing well, thank you. How are you today? role: assistant tool_calls: null function_call: null provider_time: 1952078236 edenai_time: null usage: completion_tokens: 50 prompt_tokens: 129 total_tokens: 179 completion_tokens_details: accepted_prediction_tokens: null audio_tokens: null reasoning_tokens: 25 rejected_prediction_tokens: null text_tokens: 25 prompt_tokens_details: audio_tokens: null cached_tokens: null text_tokens: null image_tokens: null service_tier: null cost: 0.0 summary: Response Example description: '' '400': content: application/json: schema: $ref: '#/components/schemas/BadRequest' description: '' '500': content: application/json: schema: $ref: '#/components/schemas/Error' description: '' '403': content: application/json: schema: $ref: '#/components/schemas/Error' description: '' '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: '' servers: - url: https://api.edenai.run/v2 /multimodal/chat/: post: operationId: multimodal_multimodal_chat_create description: 'Available Providers |Provider|Model|Version|Price|Billing unit| |----|----|-------|-----|------------| |**anthropic**|**claude-3-5-haiku-latest**|`bedrock-2023-05-31`|4.0 (per 1000000 token)|1 token |**anthropic**|-|`bedrock-2023-05-31`|15.0 (per 1000000 token)|1 token |**anthropic**|**claude-3-7-sonnet-20250219**|`bedrock-2023-05-31`|15.0 (per 1000000 token)|1 token |**google**|**gemini-1.5-flash**|`v1`|0.6 (per 1000000 token)|1 token |**google**|**gemini-1.5-pro**|`v1`|10.0 (per 1000000 token)|1 token |**google**|**gemini-1.5-flash-latest**|`v1`|0.6 (per 1000000 token)|1 token |**google**|-|`v1`|0.6 (per 1000000 token)|1 token |**google**|**gemini-2.0-flash-lite**|`v1`|0.3 (per 1000000 token)|1 token |**google**|**gemini-2.5-flash**|`v1`|2.5 (per 1000000 token)|1 token |**google**|**gemini-3-pro-preview**|`v1`|18.0 (per 1000000 token)|1 token |**google**|**gemini-2.0-flash**|`v1`|0.4 (per 1000000 token)|1 token |**google**|**gemini-2.5-pro**|`v1`|15.0 (per 1000000 token)|1 token |**google**|**gemini-2.5-pro-preview-03-25**|`v1`|15.0 (per 1000000 token)|1 token |**google**|**gemini-1.5-pro-latest**|`v1`|10.0 (per 1000000 token)|1 token |**google**|**gemini-2.0-flash-exp**|`v1`|10.0 (per 1000000 token)|1 token |**google**|**gemini-2.5-pro-exp-03-25**|`v1`|0.0 (per 1000000 token)|1 token |**openai**|**o1**|`v1Beta`|60.0 (per 1000000 token)|1 token |**openai**|**gpt-4o**|`v1Beta`|10.0 (per 1000000 token)|1 token |**openai**|**gpt-4-turbo**|`v1Beta`|30.0 (per 1000000 token)|1 token |**openai**|-|`v1Beta`|10.0 (per 1000000 token)|1 token |**openai**|**gpt-4.1-2025-04-14**|`v1Beta`|8.0 (per 1000000 token)|1 token |**openai**|**gpt-4.1-mini-2025-04-14**|`v1Beta`|1.6 (per 1000000 token)|1 token |**openai**|**gpt-4.1-nano-2025-04-14**|`v1Beta`|0.4 (per 1000000 token)|1 token |**openai**|**gpt-4o-mini**|`v1Beta`|0.6 (per 1000000 token)|1 token |**openai**|**gpt-5.2**|`v1Beta`|14.0 (per 1000000 token)|1 token |**openai**|**gpt-5**|`v1Beta`|10.0 (per 1000000 token)|1 token |**openai**|**gpt-5-mini**|`v1Beta`|2.0 (per 1000000 token)|1 token |**openai**|**gpt-5-nano**|`v1Beta`|0.4 (per 1000000 token)|1 token |**openai**|**gpt-5-chat-latest**|`v1Beta`|10.0 (per 1000000 token)|1 token |**openai**|**o1-mini**|`v1Beta`|12.0 (per 1000000 token)|1 token |**openai**|**o1-2024-12-17**|`v1Beta`|60.0 (per 1000000 token)|1 token |**xai**|-|`v1`|10.0 (per 1000000 token)|1 token |**xai**|**grok-2-vision**|`v1`|10.0 (per 1000000 token)|1 token |**xai**|**grok-2-vision-latest**|`v1`|10.0 (per 1000000 token)|1 token |**xai**|**grok-2-vision-1212**|`v1`|10.0 (per 1000000 token)|1 token |**amazon**|-|`boto3 (v1.29.6)`|3.2 (per 1000000 token)|1 token |**amazon**|**amazon.nova-pro-v1:0**|`boto3 (v1.29.6)`|3.2 (per 1000000 token)|1 token |**mistral**|-|`v0.0.1`|6.0 (per 1000000 token)|1 token |**mistral**|**pixtral-large-latest**|`v0.0.1`|6.0 (per 1000000 token)|1 token |**microsoft**|**gpt-4o**|`Azure AI Foundry`|15.0 (per 1000000 token)|1 token Supported Models Default Models |Name|Value| |----|-----| |**anthropic**|`claude-3-5-sonnet-latest`| |**google**|`gemini-2.0-flash`| |**openai**|`gpt-4o`| |**xai**|`grok-2-vision-latest`| |**amazon**|`amazon.nova-pro-v1:0`| |**mistral**|`pixtral-large-latest`| |**microsoft**|`gpt-4o`|' summary: Chat tags: - Chat requestBody: content: application/json: schema: $ref: '#/components/schemas/multimodalchatChatRequest' examples: RequestExample: value: providers: google,microsoft,openai,anthropic,xai,amazon,mistral messages: - role: user content: - type: text content: text: 'Describe this image please ! ' - type: media_url content: media_url: https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg media_type: image/jpeg chatbot_global_action: '' temperature: 0 max_tokens: 200 stop_sequences: [] top_k: 0 top_p: 0 summary: Request Example required: true security: - FeatureApiAuth: [] responses: '200': content: application/json: schema: $ref: '#/components/schemas/multimodalchatResponseModel' examples: ResponseExample: value: google: generated_text: 'Ahoy, matey! Shiver me timbers, that there''s a picture of a fine wooden boardwalk cuttin'' through a field o'' tall, green grass under a sky as blue as a mermaid''s eye! The sun be shinin'' bright, and there ain''t a cloud in sight, except for a few fluffy ones driftin'' lazily about. Looks like a peaceful spot fer a stroll, aye? Avast ye, and enjoy the view! ' messages: - role: user content: - type: text content: media_url: null media_base64: null text: 'Describe this image please ! ' media_type: null - type: media_url content: media_url: https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg media_base64: null text: null media_type: image/jpeg - role: assistant content: - type: text content: media_url: null media_base64: null text: 'Ahoy, matey! Shiver me timbers, that there''s a picture of a fine wooden boardwalk cuttin'' through a field o'' tall, green grass under a sky as blue as a mermaid''s eye! The sun be shinin'' bright, and there ain''t a cloud in sight, except for a few fluffy ones driftin'' lazily about. Looks like a peaceful spot fer a stroll, aye? Avast ye, and enjoy the view! ' media_type: null usage: completion_tokens: 101 prompt_tokens: 270 total_tokens: 371 completion_tokens_details: null prompt_tokens_details: null cost: 0.0 microsoft: generated_text: Arrr, matey! What we have here be a fine scene of nature's bounty! A wooden plank path stretches straight ahead, leadin' through a lush green meadow filled with tall grass swayin' in the gentle breeze. The sky above be painted with a brilliant blue, streaked with soft, wispy clouds, as if the heavens themselves be smilin' down on this tranquil land. In the distance, ye can spy a line of trees and bushes, addin' depth to this peaceful landscape. Aye, 'tis a place where a pirate might rest his weary bones and dream of treasure! messages: - role: user content: - type: text content: media_url: null media_base64: null text: 'Describe this image please ! ' media_type: null - type: media_url content: media_url: https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg media_base64: null text: null media_type: image/jpeg - role: assistant content: - type: text content: media_url: null media_base64: null text: Arrr, matey! What we have here be a fine scene of nature's bounty! A wooden plank path stretches straight ahead, leadin' through a lush green meadow filled with tall grass swayin' in the gentle breeze. The sky above be painted with a brilliant blue, streaked with soft, wispy clouds, as if the heavens themselves be smilin' down on this tranquil land. In the distance, ye can spy a line of trees and bushes, addin' depth to this peaceful landscape. Aye, 'tis a place where a pirate might rest his weary bones and dream of treasure! media_type: null usage: completion_tokens: 124 prompt_tokens: 930 total_tokens: 1054 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 prompt_tokens_details: audio_tokens: 0 cached_tokens: 0 cost: 0.0 openai: generated_text: Ahoy! What we have here be a splendid vista, me hearty! A wooden plank path cuts through a sea of lush green grass, leading ye towards the horizon under a sky painted with soft clouds. The land be flanked by wild shrubbery and trees, a true haven for any landlubber or pirate lookin' for a bit o' peace away from the roarin' seas. It's a fine day with the sun shinin' bright, makin' the greens look vibrant and the path invitin' for a leisurely stroll or a treasure hunt, should ye be so inclined! messages: - role: user content: - type: text content: media_url: null media_base64: null text: 'Describe this image please ! ' media_type: null - type: media_url content: media_url: https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg media_base64: null text: null media_type: image/jpeg - role: assistant content: - type: text content: media_url: null media_base64: null text: Ahoy! What we have here be a splendid vista, me hearty! A wooden plank path cuts through a sea of lush green grass, leading ye towards the horizon under a sky painted with soft clouds. The land be flanked by wild shrubbery and trees, a true haven for any landlubber or pirate lookin' for a bit o' peace away from the roarin' seas. It's a fine day with the sun shinin' bright, makin' the greens look vibrant and the path invitin' for a leisurely stroll or a treasure hunt, should ye be so inclined! media_type: null usage: completion_tokens: 124 prompt_tokens: 1094 total_tokens: 1218 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 prompt_tokens_details: audio_tokens: 0 cached_tokens: 0 cost: 0.0 anthropic: generated_text: "Arrr matey! Feast yer eyes on this magnificent sight! \n\n'Tis a wooden boardwalk, straight as an arrow, cuttin' through a sea of emerald grass that be swayin' in the breeze like waves on the ocean! The planks be weathered and gray, just like me old ship's deck, stretching far into the distance.\n\nAbove, the sky be a brilliant blue, with wispy white clouds sailin' across it like ghost ships on the horizon. The sunlight be makin' the grass glow like treasure, and off in the distance, ye can spot trees standin' guard like silent sentinels.\n\nThis here path would make for a fine walk for any landlubber, though it ain't quite as excitin' as walkin' the plank on me ship! The marsh grass be tall and thick on both sides, remindin' me of the reeds" messages: - role: user content: - type: text content: media_url: null media_base64: null text: 'Describe this image please ! ' media_type: null - type: media_url content: media_url: https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg media_base64: null text: null media_type: image/jpeg - role: assistant content: - type: text content: media_url: null media_base64: null text: "Arrr matey! Feast yer eyes on this magnificent sight! \n\n'Tis a wooden boardwalk, straight as an arrow, cuttin' through a sea of emerald grass that be swayin' in the breeze like waves on the ocean! The planks be weathered and gray, just like me old ship's deck, stretching far into the distance.\n\nAbove, the sky be a brilliant blue, with wispy white clouds sailin' across it like ghost ships on the horizon. The sunlight be makin' the grass glow like treasure, and off in the distance, ye can spot trees standin' guard like silent sentinels.\n\nThis here path would make for a fine walk for any landlubber, though it ain't quite as excitin' as walkin' the plank on me ship! The marsh grass be tall and thick on both sides, remindin' me of the reeds" media_type: null usage: completion_tokens: 200 prompt_tokens: 1590 total_tokens: 1790 completion_tokens_details: null prompt_tokens_details: audio_tokens: null cached_tokens: 0 cache_creation_input_tokens: 0 cache_read_input_tokens: 0 cost: 0.0 xai: generated_text: Arrr, matey! This here be a fine image o' a wooden boardwalk stretchin' out into a vast sea o' green grass, leadin' ye towards the horizon. The sky above be a brilliant blue, dotted with fluffy white clouds, like sails on the high seas. The path be straight and true, invitin' ye to walk the plank into the heart o' this lush meadow. Aye, 'tis a peaceful sight, perfect fer a pirate lookin' fer a bit o' tranquility on land! messages: - role: user content: - type: text content: media_url: null media_base64: null text: 'Describe this image please ! ' media_type: null - type: media_url content: media_url: https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg media_base64: null text: null media_type: image/jpeg - role: assistant content: - type: text content: media_url: null media_base64: null text: Arrr, matey! This here be a fine image o' a wooden boardwalk stretchin' out into a vast sea o' green grass, leadin' ye towards the horizon. The sky above be a brilliant blue, dotted with fluffy white clouds, like sails on the high seas. The path be straight and true, invitin' ye to walk the plank into the heart o' this lush meadow. Aye, 'tis a peaceful sight, perfect fer a pirate lookin' fer a bit o' tranquility on land! media_type: null usage: completion_tokens: 109 prompt_tokens: 277 total_tokens: 386 completion_tokens_details: null prompt_tokens_details: audio_tokens: 0 cached_tokens: 0 cost: 0.0 amazon: generated_text: 'Ahoy, matey! Shiver me timbers, what a sight for these ol'' pirate eyes! Ye be lookin'' at a right fine stretch o'' land, as green as the emerald seas! There be a wooden walkway, straight as an arrow, cuttin'' through a sea o'' tall grass that''d tickle yer chin if ye were standin'' in it. The sky above, she''s a beauty! Blue as a sapphire with wispy white clouds stretchin'' across like sails on the horizon. Ye can almost feel the warm breeze blowin'' through yer whiskers. Off in the distance, ye can spy some trees standin'' tall, like a crew of landlubbers waitin'' to greet ye at the end of yer journey. The whole scene be as peaceful as a calm day at sea, with nary a storm cloud in sight. This' messages: - role: user content: - type: text content: media_url: null media_base64: null text: 'Describe this image please ! ' media_type: null - type: media_url content: media_url: https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg media_base64: null text: null media_type: image/jpeg - role: assistant content: - type: text content: media_url: null media_base64: null text: 'Ahoy, matey! Shiver me timbers, what a sight for these ol'' pirate eyes! Ye be lookin'' at a right fine stretch o'' land, as green as the emerald seas! There be a wooden walkway, straight as an arrow, cuttin'' through a sea o'' tall grass that''d tickle yer chin if ye were standin'' in it. The sky above, she''s a beauty! Blue as a sapphire with wispy white clouds stretchin'' across like sails on the horizon. Ye can almost feel the warm breeze blowin'' through yer whiskers. Off in the distance, ye can spy some trees standin'' tall, like a crew of landlubbers waitin'' to greet ye at the end of yer journey. The whole scene be as peaceful as a calm day at sea, with nary a storm cloud in sight. This' media_type: null usage: completion_tokens: 200 prompt_tokens: 1590 total_tokens: 1790 completion_tokens_details: null prompt_tokens_details: null cost: 0.0 mistral: generated_text: Arr matey, this here image be a sight for sore eyes! It shows a wooden plank walkway, stretchin' into the horizon, invitin' us to explore what lies beyond. The path be flanked by tall, green grasses, swayin' gently in the breeze. The sky above be a clear blue, with wisps of clouds scattered about, like a hidden treasure map. In the distance, ye can see a line of trees standin' tall and proud, guardin' the secrets of the land. The sun be castin' a warm glow over the scene, makin' it feel like a true paradise. It be a perfect place to bury some treasure, savvy? messages: - role: user content: - type: text content: media_url: null media_base64: null text: 'Describe this image please ! ' media_type: null - type: media_url content: media_url: https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg media_base64: null text: null media_type: image/jpeg - role: assistant content: - type: text content: media_url: null media_base64: null text: Arr matey, this here image be a sight for sore eyes! It shows a wooden plank walkway, stretchin' into the horizon, invitin' us to explore what lies beyond. The path be flanked by tall, green grasses, swayin' gently in the breeze. The sky above be a clear blue, with wisps of clouds scattered about, like a hidden treasure map. In the distance, ye can see a line of trees standin' tall and proud, guardin' the secrets of the land. The sun be castin' a warm glow over the scene, makin' it feel like a true paradise. It be a perfect place to bury some treasure, savvy? media_type: null usage: completion_tokens: 149 prompt_tokens: 2746 total_tokens: 2895 completion_tokens_details: null prompt_tokens_details: null cost: 0.0 summary: Response Example description: '' '400': content: application/json: schema: $ref: '#/components/schemas/BadRequest' description: '' '500': content: application/json: schema: $ref: '#/components/schemas/Error' description: '' '403': content: application/json: schema: $ref: '#/components/schemas/Error' description: '' '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: '' servers: - url: https://api.edenai.run/v2 /text/chat/: post: operationId: text_chat_create description: 'Available Providers |Provider|Model|Version|Price|Billing unit| |----|----|-------|-----|------------| |**openai**|**o3-mini**|`v1Beta`|4.4e-06 (per 1 token)|1 token |**openai**|**gpt-4.1-2025-04-14**|`v1Beta`|8e-06 (per 1 token)|1 token |**openai**|**gpt-4.1-nano-2025-04-14**|`v1Beta`|4e-07 (per 1 token)|1 token |**openai**|**gpt-4o-mini**|`v1Beta`|6e-07 (per 1 token)|1 token |**openai**|-|`v1Beta`|10.0 (per 1000000 token)|1 token |**openai**|**o1-preview**|`v1Beta`|6e-05 (per 1 token)|1 token |**openai**|**o1-mini**|`v1Beta`|4.4e-06 (per 1 token)|1 token |**openai**|**gpt-4o-2024-05-13**|`v1Beta`|1.5e-05 (per 1 token)|1 token |**openai**|**gpt-5**|`v1Beta`|1e-05 (per 1 token)|1 token |**openai**|**gpt-5-chat-latest**|`v1Beta`|1e-05 (per 1 token)|1 token |**openai**|**gpt-5-mini**|`v1Beta`|2e-06 (per 1 token)|1 token |**openai**|**gpt-5-nano**|`v1Beta`|4e-07 (per 1 token)|1 token |**openai**|**gpt-4-turbo**|`v1Beta`|3e-05 (per 1 token)|1 token |**openai**|**o1-2024-12-17**|`v1Beta`|6e-05 (per 1 token)|1 token |**openai**|**gpt-5.2**|`v1Beta`|1.4e-05 (per 1 token)|1 token |**openai**|**chatgpt-4o-latest**|`v1Beta`|1.5e-05 (per 1 token)|1 token |**openai**|**gpt-3.5-turbo**|`v1Beta`|1.5e-06 (per 1 token)|1 token |**openai**|**gpt-3.5-turbo-0125**|`v1Beta`|1.5e-06 (per 1 token)|1 token |**openai**|**gpt-3.5-turbo-0301**|`v1Beta`|2e-06 (per 1 token)|1 token |**openai**|**gpt-3.5-turbo-0613**|`v1Beta`|2e-06 (per 1 token)|1 token |**openai**|**gpt-3.5-turbo-1106**|`v1Beta`|2e-06 (per 1 token)|1 token |**openai**|**gpt-3.5-turbo-16k**|`v1Beta`|4e-06 (per 1 token)|1 token |**openai**|**gpt-3.5-turbo-16k-0613**|`v1Beta`|4e-06 (per 1 token)|1 token |**openai**|**gpt-4**|`v1Beta`|6e-05 (per 1 token)|1 token |**openai**|**gpt-4-0125-preview**|`v1Beta`|3e-05 (per 1 token)|1 token |**openai**|**gpt-4-0314**|`v1Beta`|6e-05 (per 1 token)|1 token |**openai**|**gpt-4-0613**|`v1Beta`|6e-05 (per 1 token)|1 token |**openai**|**gpt-4-1106-preview**|`v1Beta`|3e-05 (per 1 token)|1 token |**openai**|**gpt-4-1106-vision-preview**|`v1Beta`|3e-05 (per 1 token)|1 token |**openai**|**gpt-4-32k**|`v1Beta`|0.00012 (per 1 token)|1 token |**openai**|**gpt-4-32k-0314**|`v1Beta`|0.00012 (per 1 token)|1 token |**openai**|**gpt-4-32k-0613**|`v1Beta`|0.00012 (per 1 token)|1 token |**openai**|**gpt-4-turbo-2024-04-09**|`v1Beta`|3e-05 (per 1 token)|1 token |**openai**|**gpt-4-turbo-preview**|`v1Beta`|3e-05 (per 1 token)|1 token |**openai**|**gpt-4-vision-preview**|`v1Beta`|3e-05 (per 1 token)|1 token |**openai**|**gpt-4.1**|`v1Beta`|8e-06 (per 1 token)|1 token |**openai**|**gpt-4.1-mini**|`v1Beta`|1.6e-06 (per 1 token)|1 token |**openai**|**gpt-4.1-mini-2025-04-14**|`v1Beta`|1.6e-06 (per 1 token)|1 token |**openai**|**gpt-4.1-nano**|`v1Beta`|4e-07 (per 1 token)|1 token |**openai**|**gpt-4.5-preview**|`v1Beta`|0.00015 (per 1 token)|1 token |**openai**|**gpt-4.5-preview-2025-02-27**|`v1Beta`|0.00015 (per 1 token)|1 token |**openai**|**gpt-4o**|`v1Beta`|1e-05 (per 1 token)|1 token |**openai**|**gpt-4o-2024-08-06**|`v1Beta`|1e-05 (per 1 token)|1 token |**openai**|**gpt-4o-2024-11-20**|`v1Beta`|1e-05 (per 1 token)|1 token |**openai**|**gpt-4o-audio-preview**|`v1Beta`|1e-05 (per 1 token)|1 token |**openai**|**gpt-4o-audio-preview-2024-10-01**|`v1Beta`|1e-05 (per 1 token)|1 token |**openai**|**gpt-4o-audio-preview-2024-12-17**|`v1Beta`|1e-05 (per 1 token)|1 token |**openai**|**gpt-4o-audio-preview-2025-06-03**|`v1Beta`|1e-05 (per 1 token)|1 token |**openai**|**gpt-4o-mini-2024-07-18**|`v1Beta`|6e-07 (per 1 token)|1 token |**openai**|**gpt-4o-mini-audio-preview**|`v1Beta`|6e-07 (per 1 token)|1 token |**openai**|**gpt-4o-mini-audio-preview-2024-12-17**|`v1Beta`|6e-07 (per 1 token)|1 token |**openai**|**gpt-4o-mini-realtime-preview**|`v1Beta`|2.4e-06 (per 1 token)|1 token |**openai**|**gpt-4o-mini-realtime-preview-2024-12-17**|`v1Beta`|2.4e-06 (per 1 token)|1 token |**openai**|**gpt-4o-mini-search-preview**|`v1Beta`|6e-07 (per 1 token)|1…' summary: Chat tags: - Chat requestBody: content: application/json: schema: $ref: '#/components/schemas/textchatChatRequest' examples: RequestExample: value: providers: xai,microsoft,deepseek,perplexityai,anthropic,openai,meta,cohere,amazon,together_ai,google,groq,mistral text: Barack Hussein Obama is an American politician who served as the 44th president of the United States from 2009 to 2017. A member of the Democratic Party, Obama was the first African-American president of the United States. He previously served as a U.S. senator from Illinois from 2005 to 2008 and as an Illinois state senator from 1997 to 2004. chatbot_global_action: You are a keyword extractor. Extract Only the word from the text provided. previous_history: - role: user message: Steve Jobs was a co-founder of Apple Inc., a multinational technology company headquartered in Cupertino, California. He was also the CEO and a major shareholder of Pixar Animation Studios, which was later acquired by The Walt Disney Company. Jobs was widely recognized as a visionary entrepreneur and a pioneer in the personal computer industry. In addition to his business ventures, he was also known for his charismatic personality, his signature black turtleneck, and his famous keynote presentations at Apple's product launches. - role: assistant message: steve jobs, apple inc, pixar, california temperature: 0.0 max_tokens: 100 summary: Request Example required: true security: - FeatureApiAuth: [] responses: '200': content: application/json: schema: $ref: '#/components/schemas/textchatResponseModel' examples: ResponseExample: value: xai: generated_text: Barack Hussein Obama, American, politician, 44th president, United States, 2009, 2017, Democratic Party, African-American, U.S. senator, Illinois, 2005, 2008, state senator, 1997, 2004 message: - role: user message: Barack Hussein Obama is an American politician who served as the 44th president of the United States from 2009 to 2017. A member of the Democratic Party, Obama was the first African-American president of the United States. He previously served as a U.S. senator from Illinois from 2005 to 2008 and as an Illinois state senator from 1997 to 2004. tools: null tool_calls: null - role: assistant message: Barack Hussein Obama, American, politician, 44th president, United States, 2009, 2017, Democratic Party, African-American, U.S. senator, Illinois, 2005, 2008, state senator, 1997, 2004 tools: null tool_calls: [] cost: 0.0 microsoft: generated_text: barack obama, american, politician, president, united states, democratic party, african-american, senator, illinois message: - role: user message: Barack Hussein Obama is an American politician who served as the 44th president of the United States from 2009 to 2017. A member of the Democratic Party, Obama was the first African-American president of the United States. He previously served as a U.S. senator from Illinois from 2005 to 2008 and as an Illinois state senator from 1997 to 2004. tools: null tool_calls: null - role: assistant message: barack obama, american, politician, president, united states, democratic party, african-american, senator, illinois tools: null tool_calls: [] usage: completion_tokens: 24 prompt_tokens: 221 total_tokens: 245 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 prompt_tokens_details: audio_tokens: 0 cached_tokens: 0 cost: 0.0 deepseek: generated_text: barack obama, united states, president, democratic party, illinois, senator message: - role: user message: Barack Hussein Obama is an American politician who served as the 44th president of the United States from 2009 to 2017. A member of the Democratic Party, Obama was the first African-American president of the United States. He previously served as a U.S. senator from Illinois from 2005 to 2008 and as an Illinois state senator from 1997 to 2004. tools: null tool_calls: null - role: assistant message: barack obama, united states, president, democratic party, illinois, senator tools: null tool_calls: [] cost: 0.0 perplexityai: generated_text: barack obama, president, united states, democratic party, african-american, senator, illinois message: - role: user message: Barack Hussein Obama is an American politician who served as the 44th president of the United States from 2009 to 2017. A member of the Democratic Party, Obama was the first African-American president of the United States. He previously served as a U.S. senator from Illinois from 2005 to 2008 and as an Illinois state senator from 1997 to 2004. tools: null tool_calls: null - role: system message: barack obama, president, united states, democratic party, african-american, senator, illinois tools: null tool_calls: null usage: null cost: 0.0 anthropic: generated_text: barack obama, president, united states, democratic party, illinois, senator, african-american message: - role: user message: Barack Hussein Obama is an American politician who served as the 44th president of the United States from 2009 to 2017. A member of the Democratic Party, Obama was the first African-American president of the United States. He previously served as a U.S. senator from Illinois from 2005 to 2008 and as an Illinois state senator from 1997 to 2004. tools: null tool_calls: null - role: assistant message: barack obama, president, united states, democratic party, illinois, senator, african-american tools: null tool_calls: [] usage: completion_tokens: 21 prompt_tokens: 236 total_tokens: 257 completion_tokens_details: null prompt_tokens_details: audio_tokens: null cached_tokens: 0 cache_creation_input_tokens: 0 cache_read_input_tokens: 0 cost: 0.0 openai: generated_text: barack hussein obama, american, politician, 44th president, united states, democratic party, african-american, u.s. senator, illinois, state senator message: - role: user message: Barack Hussein Obama is an American politician who served as the 44th president of the United States from 2009 to 2017. A member of the Democratic Party, Obama was the first African-American president of the United States. He previously served as a U.S. senator from Illinois from 2005 to 2008 and as an Illinois state senator from 1997 to 2004. tools: null tool_calls: null - role: assistant message: barack hussein obama, american, politician, 44th president, united states, democratic party, african-american, u.s. senator, illinois, state senator tools: null tool_calls: [] usage: completion_tokens: 37 prompt_tokens: 222 total_tokens: 259 completion_tokens_details: accepted_prediction_tokens: 0 audio_tokens: 0 reasoning_tokens: 0 rejected_prediction_tokens: 0 prompt_tokens_details: audio_tokens: 0 cached_tokens: 0 cost: 0.0 meta: generated_text: ' Barack Obama, Democratic Party, United States, Illinois' message: - role: user message: Barack Hussein Obama is an American politician who served as the 44th president of the United States from 2009 to 2017. A member of the Democratic Party, Obama was the first African-American president of the United States. He previously served as a U.S. senator from Illinois from 2005 to 2008 and as an Illinois state senator from 1997 to 2004. tools: null tool_calls: null - role: assistant message: ' Barack Obama, Democratic Party, United States, Illinois' tools: null tool_calls: [] usage: completion_tokens: 13 prompt_tokens: 227 total_tokens: 240 completion_tokens_details: null prompt_tokens_details: null cost: 0.0 cohere: generated_text: 'Here are the keywords extracted from the text: - Steve Jobs - Apple Inc. - Co-founder - Multinational technology company - Cupertino - California - CEO - Pixar Animation Studios - Walt Disney Company - Visionary entrepreneur - Pioneer - Personal computer industry - Charismatic personality - Black turtleneck - Keynote presentations - Barack Hussein Obama - American politician - 44th President of the United States - Democratic Party - African-American President - U.S. Senator - Illinois - State Senator.' message: - role: user message: Barack Hussein Obama is an American politician who served as the 44th president of the United States from 2009 to 2017. A member of the Democratic Party, Obama was the first African-American president of the United States. He previously served as a U.S. senator from Illinois from 2005 to 2008 and as an Illinois state senator from 1997 to 2004. tools: null tool_calls: null - role: assistant message: 'Here are the keywords extracted from the text: - Steve Jobs - Apple Inc. - Co-founder - Multinational technology company - Cupertino - California - CEO - Pixar Animation Studios - Walt Disney Company - Visionary entrepreneur - Pioneer - Personal computer industry - Charismatic personality - Black turtleneck - Keynote presentations - Barack Hussein Obama - American politician - 44th President of the United States - Democratic Party - African-American President - U.S. Senator - Illinois - State Senator.' tools: null tool_calls: [] usage: completion_tokens: 117 prompt_tokens: 202 total_tokens: 319 completion_tokens_details: null prompt_tokens_details: null cost: 0.0 amazon: generated_text: barack hussein obama, democratic party, african-american, united states, illinois message: - role: user message: Barack Hussein Obama is an American politician who served as the 44th president of the United States from 2009 to 2017. A member of the Democratic Party, Obama was the first African-American president of the United States. He previously served as a U.S. senator from Illinois from 2005 to 2008 and as an Illinois state senator from 1997 to 2004. tools: null tool_calls: null - role: assistant message: barack hussein obama, democratic party, african-american, united states, illinois tools: null tool_calls: [] usage: completion_tokens: 19 prompt_tokens: 236 total_tokens: 255 completion_tokens_details: null prompt_tokens_details: null cost: 0.0 together_ai: generated_text: barack obama, united states, president, democratic party, illinois, senator message: - role: user message: Barack Hussein Obama is an American politician who served as the 44th president of the United States from 2009 to 2017. A member of the Democratic Party, Obama was the first African-American president of the United States. He previously served as a U.S. senator from Illinois from 2005 to 2008 and as an Illinois state senator from 1997 to 2004. tools: null tool_calls: null - role: assistant message: barack obama, united states, president, democratic party, illinois, senator tools: null tool_calls: [] cost: 0.0 google: generated_text: 'Barack Obama, president, United States ' message: - role: user message: Barack Hussein Obama is an American politician who served as the 44th president of the United States from 2009 to 2017. A member of the Democratic Party, Obama was the first African-American president of the United States. He previously served as a U.S. senator from Illinois from 2005 to 2008 and as an Illinois state senator from 1997 to 2004. tools: null tool_calls: null - role: assistant message: 'Barack Obama, president, United States ' tools: null tool_calls: [] usage: completion_tokens: 9 prompt_tokens: 219 total_tokens: 228 completion_tokens_details: null prompt_tokens_details: null cost: 0.0 groq: generated_text: barack obama, american, politician, democratic, african, united states, senator, illinois message: - role: user message: Barack Hussein Obama is an American politician who served as the 44th president of the United States from 2009 to 2017. A member of the Democratic Party, Obama was the first African-American president of the United States. He previously served as a U.S. senator from Illinois from 2005 to 2008 and as an Illinois state senator from 1997 to 2004. tools: null tool_calls: null - role: assistant message: barack obama, american, politician, democratic, african, united states, senator, illinois tools: null tool_calls: [] usage: completion_tokens: 21 prompt_tokens: 248 total_tokens: 269 completion_tokens_details: null prompt_tokens_details: null queue_time: 0.094506039 prompt_time: 0.007630602 completion_time: 0.028 total_time: 0.035630602 cost: 0.0 mistral: generated_text: 'Obama American president United States Democratic African Illinois senator' message: - role: user message: Barack Hussein Obama is an American politician who served as the 44th president of the United States from 2009 to 2017. A member of the Democratic Party, Obama was the first African-American president of the United States. He previously served as a U.S. senator from Illinois from 2005 to 2008 and as an Illinois state senator from 1997 to 2004. tools: null tool_calls: null - role: assistant message: 'Obama American president United States Democratic African Illinois senator' tools: null tool_calls: [] usage: completion_tokens: 23 prompt_tokens: 260 total_tokens: 283 completion_tokens_details: null prompt_tokens_details: null cost: 0.0 summary: Response Example description: '' '400': content: application/json: schema: $ref: '#/components/schemas/BadRequest' description: '' '500': content: application/json: schema: $ref: '#/components/schemas/Error' description: '' '403': content: application/json: schema: $ref: '#/components/schemas/Error' description: '' '404': content: application/json: schema: $ref: '#/components/schemas/NotFoundResponse' description: '' servers: - url: https://api.edenai.run/v2 /text/chat/stream/: post: operationId: text_chat_stream_create description: 'Streamed version of Chat feature, the raw text will be streamed chunk by chunk. NOTE: For this feature, you an only request one provider at a time.' summary: Chat Stream tags: - Chat requestBody: content: application/json: schema: $ref: '#/components/schemas/textchatChatStreamRequest' examples: RequestExample: value: providers: xai,microsoft,deepseek,perplexityai,anthropic,openai,meta,cohere,amazon,together_ai,google,groq,mistral text: Barack Hussein Obama is an American politician who served as the 44th president of the United States from 2009 to 2017. A member of the Democratic Party, Obama was the first African-American president of the United States. He previously served as a U.S. senator from Illinois from 2005 to 2008 and as an Illinois state senator from 1997 to 2004. chatbot_global_action: You are a keyword extractor. Extract Only the word from the text provided. previous_history: - role: user message: Steve Jobs was a co-founder of Apple Inc., a multinational technology company headquartered in Cupertino, California. He was also the CEO and a major shareholder of Pixar Animation Studios, which was later acquired by The Walt Disney Company. Jobs was widely recognized as a visionary entrepreneur and a pioneer in the personal computer industry. In addition to his business ventures, he was also known for his charismatic personality, his signature black turtleneck, and his famous keynote presentations at Apple's product launches. - role: assistant message: steve jobs, apple inc, pixar, california temperature: 0.0 max_tokens: 100 summary: Request Example required: true security: - FeatureApiAuth: [] responses: '200': content: text/plain: schema: type: string examples: ResponseExample: value: '{"text": "obama", "is_blocked": false, "provider": "openai"} {"text": "american", "is_blocked": false, "provider": "openai"} {"text": "politician", "is_blocked": false, "provider": "openai"} {"text": "44th", "is_blocked": false, "provider": "openai"} {"text": "president", "is_blocked": false, "provider": "openai"} {"text": "united", "is_blocked": false, "provider": "openai"} {"text": "states", "is_blocked": false, "provider": "openai"} {"text": "democratic", "is_blocked": false, "provider": "openai"} {"text": "party", "is_blocked": false, "provider": "openai"} {"text": "african-american", "is_blocked": false, "provider": "openai"} {"text": "senator", "is_blocked": false, "provider": "openai"} {"text": "illinois", "is_blocked": false, "provider": "openai"}' summary: Response Example description: '' servers: - url: https://api.edenai.run/v2 /v3/chat/completions: post: tags: - Chat summary: Chat Completions description: OpenAI-compatible chat completions endpoint (v3). operationId: chat_completions_v3_chat_completions_post requestBody: content: application/json: schema: $ref: '#/components/schemas/LlmCompletionBody' required: true responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/ChatCompletionResponse' '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' security: - AuthBearer: [] servers: - url: https://api.edenai.run description: Production server components: schemas: llmchatChatDataClass: properties: id: description: Unique identifier for this completion title: Id type: string object: description: Object type, always 'chat.completion' title: Object type: string created: description: Unix timestamp for when the completion was created title: Created type: integer model: description: The model used for completion title: Model type: string choices: description: List of chat completion choices generated by the model items: $ref: '#/components/schemas/ChatCompletionChoice' title: Choices type: array usage: $ref: '#/components/schemas/ChatCompletionUsage' description: Usage statistics for the completion request system_fingerprint: default: null description: Identifier for the system version that processed the request title: System Fingerprint type: string original_response: default: null description: original response sent by the provider, hidden by default, show it by passing the `show_original_response` field to `true` in your request title: Original Response status: allOf: - $ref: '#/components/schemas/StatusEnum' title: Status required: - id - object - created - model - choices - usage - status title: llmchatChatDataClass type: object ReasoningEffortEnum: enum: - low - medium - high type: string description: '**Choices**: - ''low'': Minimal reasoning, quick responses - ''medium'': Balanced reasoning approach - ''high'': In-depth, comprehensive reasoning **Example**: ''high'' for complex problem-solving tasks * `low` - low * `medium` - medium * `high` - high' ChatCompletionUsage: properties: completion_tokens_details: $ref: '#/components/schemas/UsageTokensDetails' description: Number of tokens in the generated completion prompt_tokens_details: $ref: '#/components/schemas/UsageTokensDetails' description: Number of tokens in the prompt total_tokens: description: Total number of tokens used (prompt + completion) title: Total Tokens type: integer required: - completion_tokens_details - prompt_tokens_details - total_tokens title: ChatCompletionUsage type: object ChatCompletionChoice: properties: index: description: The index of this completion choice title: Index type: integer message: $ref: '#/components/schemas/ChatMessage' description: The chat completion message finish_reason: description: 'The reason the completion finished: ''stop'', ''length'', ''tool_calls'', ''content_filter'', or ''function_call''' title: Finish Reason type: string required: - index - message - finish_reason title: ChatCompletionChoice type: object NestedError: type: object properties: type: type: string message: type: string required: - message - type TypeEnum: enum: - enabled - disabled type: string description: '* `enabled` - enabled * `disabled` - disabled' ChatRole: enum: - system - user - assistant - function - tool title: ChatRole type: string NotFoundResponse: type: object properties: details: type: string default: Not Found UsageTokensDetails: properties: audio_tokens: description: Number of audio tokens in the prompt title: Audio Tokens type: integer cached_tokens: description: Number of cached tokens in the prompt title: Cached Tokens type: integer prompt_tokens: description: Number of tokens in the prompt title: Prompt Tokens type: integer completion_tokens: description: Number of tokens in the generated completion title: Completion Tokens type: integer total_tokens: description: Total number of tokens used (prompt + completion) title: Total Tokens type: integer accepted_prediction_tokens: description: Number of accepted tokens in the prompt title: Accepted Prediction Tokens type: integer reasoning_tokens: description: Number of reasoning tokens in the prompt title: Reasoning Tokens type: integer rejected_prediction_tokens: description: Number of rejected tokens in the prompt title: Rejected Prediction Tokens type: integer required: - audio_tokens - cached_tokens - prompt_tokens - completion_tokens - total_tokens - accepted_prediction_tokens - reasoning_tokens - rejected_prediction_tokens title: UsageTokensDetails type: object llmchatResponseModel: properties: replicate: $ref: '#/components/schemas/llmchatChatDataClass' default: null moonshot: $ref: '#/components/schemas/llmchatChatDataClass' default: null tensorx: $ref: '#/components/schemas/llmchatChatDataClass' default: null scaleway: $ref: '#/components/schemas/llmchatChatDataClass' default: null together_ai: $ref: '#/components/schemas/llmchatChatDataClass' default: null databricks: $ref: '#/components/schemas/llmchatChatDataClass' default: null tsystems: $ref: '#/components/schemas/llmchatChatDataClass' default: null openai: $ref: '#/components/schemas/llmchatChatDataClass' default: null lilac: $ref: '#/components/schemas/llmchatChatDataClass' default: null groq: $ref: '#/components/schemas/llmchatChatDataClass' default: null minimax: $ref: '#/components/schemas/llmchatChatDataClass' default: null nebius: $ref: '#/components/schemas/llmchatChatDataClass' default: null ovhcloud: $ref: '#/components/schemas/llmchatChatDataClass' default: null deepseek: $ref: '#/components/schemas/llmchatChatDataClass' default: null bytedance: $ref: '#/components/schemas/llmchatChatDataClass' default: null iointelligence: $ref: '#/components/schemas/llmchatChatDataClass' default: null amazon: $ref: '#/components/schemas/llmchatChatDataClass' default: null compactifai: $ref: '#/components/schemas/llmchatChatDataClass' default: null deepinfra: $ref: '#/components/schemas/llmchatChatDataClass' default: null cohere: $ref: '#/components/schemas/llmchatChatDataClass' default: null flexai: $ref: '#/components/schemas/llmchatChatDataClass' default: null qwen: $ref: '#/components/schemas/llmchatChatDataClass' default: null azure: $ref: '#/components/schemas/llmchatChatDataClass' default: null anthropic: $ref: '#/components/schemas/llmchatChatDataClass' default: null meta: $ref: '#/components/schemas/llmchatChatDataClass' default: null cloudflare: $ref: '#/components/schemas/llmchatChatDataClass' default: null huggingface: $ref: '#/components/schemas/llmchatChatDataClass' default: null microsoft: $ref: '#/components/schemas/llmchatChatDataClass' default: null xai: $ref: '#/components/schemas/llmchatChatDataClass' default: null xiaomi: $ref: '#/components/schemas/llmchatChatDataClass' default: null dashscope: $ref: '#/components/schemas/llmchatChatDataClass' default: null ionos: $ref: '#/components/schemas/llmchatChatDataClass' default: null mistral: $ref: '#/components/schemas/llmchatChatDataClass' default: null zai: $ref: '#/components/schemas/llmchatChatDataClass' default: null cerebras: $ref: '#/components/schemas/llmchatChatDataClass' default: null google: $ref: '#/components/schemas/llmchatChatDataClass' default: null tenstorrent: $ref: '#/components/schemas/llmchatChatDataClass' default: null fireworks_ai: $ref: '#/components/schemas/llmchatChatDataClass' default: null infomaniak: $ref: '#/components/schemas/llmchatChatDataClass' default: null sakana: $ref: '#/components/schemas/llmchatChatDataClass' default: null perplexityai: $ref: '#/components/schemas/llmchatChatDataClass' default: null vertex: $ref: '#/components/schemas/llmchatChatDataClass' default: null title: llmchatResponseModel type: object ThinkingRequest: type: object properties: type: $ref: '#/components/schemas/TypeEnum' budget_tokens: type: integer minimum: 1024 required: - budget_tokens - type ChatMessage: properties: role: $ref: '#/components/schemas/ChatRole' description: The role of the message author content: default: null description: The content of the message title: Content type: string name: default: null description: The name of the author of this message title: Name type: string function_call: additionalProperties: true default: null description: The function call information title: Function Call type: object tool_calls: default: null description: The tool call information items: additionalProperties: true type: object title: Tool Calls type: array required: - role title: ChatMessage type: object NestedBadRequest: type: object properties: type: type: string message: $ref: '#/components/schemas/FieldError' required: - message - type ServiceTierEnum: enum: - auto - default type: string description: '**Choices**: - ''auto'': Automatically select appropriate tier - ''default'': Use default service configuration * `auto` - auto * `default` - default' MetadataRequest: type: object properties: key: type: string minLength: 1 maxLength: 64 value: type: string minLength: 1 maxLength: 512 required: - key - value FieldError: type: object properties: : type: array items: type: string required: - StatusEnum: enum: - sucess - fail type: string Error: type: object properties: error: $ref: '#/components/schemas/NestedError' required: - error llmchatllmchatChatRequest: type: object properties: messages: type: array items: type: object additionalProperties: {} description: "A list containing all the conversations between the user and the assistant.\nEach item in the list should be a dictionary with two keys: 'role' and 'message'.\n\n**role**: Specifies the role of the speaker and can have the values 'user', 'system', 'assistant' or 'tool'.\nThe system role instructs the way the model should answer, e.g. 'You are a helpful assistant'. The user\nrole specifies the user query and assistant is the model's response. The tool role is for external tools that\ncan be used in the conversation.\n\n**message**: A list of dictionaries. Each dictionary in the 'message' list must contain the keys 'type' and 'content'.\n\n#### Structure\n- **type**: Specifies the type of content and can be 'image_url' or 'text'.\n- **content**: A dictionary with the actual content based on the 'type':\n - If 'type' is 'image_url', 'content' must contain 'image_url' and must not contain 'text'.\n - If 'type' is 'text', 'content' must contain 'text' and must not contain 'image_url'.\n\n#### Example\n```json\n[\n {\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"Describe this image\"\n },\n {\n \"type\": \"image_url\",\n \"image_url\": {\n \"url\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg\"\n }\n }\n ]\n }\n]\n```" model: type: string minLength: 1 description: "The OpenAI model to use for the chat completion. \nThis field is required and specifies which language model will process the conversation. \n\n**Example values**: 'gpt-3.5-turbo', 'gpt-4', 'gpt-4-turbo'" reasoning_effort: allOf: - $ref: '#/components/schemas/ReasoningEffortEnum' description: "Optional parameter to control the model's reasoning depth. \nAllows specifying the level of analytical effort in generating responses. \n\n**Choices**:\n- 'low': Minimal reasoning, quick responses\n- 'medium': Balanced reasoning approach\n- 'high': In-depth, comprehensive reasoning\n\n**Example**: 'high' for complex problem-solving tasks\n\n* `low` - low\n* `medium` - medium\n* `high` - high" metadata: type: array items: $ref: '#/components/schemas/MetadataRequest' description: "Optional list of metadata associated with the chat request. \nCan be used to provide additional context or tracking information. \n\n**Example**:\n```json\n{\n \"metadata\": [\n {\"key\": \"conversation_id\", \"value\": \"chat_12345\"},\n {\"key\": \"source\", \"value\": \"customer_support\"}\n ]\n}\n```" frequency_penalty: type: number format: double maximum: 2.0 minimum: -2.0 description: "Controls repetitiveness of model responses by penalizing frequent tokens. \nRanges from -2.0 to 2.0. \n\n**Values**:\n- Positive values: Reduce token repetition\n- Negative values: Encourage repetition\n- 0.0: Default behavior\n\n**Example**: 1.5 to significantly reduce repeated phrases" logit_bias: type: object additionalProperties: type: number format: double description: "Modify the likelihood of specific tokens appearing in the response. \nA dictionary where keys are token IDs and values are bias scores. \n\n**Example**:\n```json\n{\n \"logit_bias\": {\n \"50256\": -100, # Reduce probability of end-of-text token\n \"15\": 5 # Slightly increase probability of a specific token\n }\n}\n```" logprobs: type: boolean description: "If set to True, returns log probabilities of the most likely tokens. \nUseful for advanced token probability analysis. \n\n**Example**: True to get detailed token likelihood information" top_logprobs: type: integer maximum: 20 minimum: 0 description: "Number of top log probabilities to return with each token. \nMust be between 0 and 20. \n\n**Example**: 5 to get top 5 most likely tokens for each position" max_completion_tokens: type: integer minimum: 1 description: "Maximum number of tokens to generate in the completion. \nMust be at least 1. \n\n**Example**: 150 to limit response to approximately 100-150 words" n: type: integer minimum: 1 description: "Number of chat completion choices to generate.\n\n **Example**: 3 to generate multiple alternative responses" modalities: type: array items: type: string minLength: 1 description: "List of supported input/output modalities for the chat. \n\n**Example**:\n```json\n{\n \"modalities\": [\"text\", \"image\", \"audio\"]\n}\n```" prediction: type: object additionalProperties: {} description: "Optional field for storing prediction-related information. \nFlexible dictionary to capture model's predictive metadata. \n\n**Example**:\n```json\n{\n \"prediction\": {\n \"confidence_score\": 0.85,\n \"top_prediction\": \"response_category\"\n }\n}\n```" audio: type: object additionalProperties: {} description: "Optional dictionary for audio-related parameters or metadata. \n\n**Example**:\n```json\n{\n \"audio\": {\n \"language\": \"en-US\",\n \"transcription_format\": \"srt\"\n }\n}\n```" presence_penalty: type: number format: double maximum: 2.0 minimum: -2.0 description: "Adjusts likelihood of discussing new topics by penalizing existing tokens. \nRanges from -2.0 to 2.0. \n\n**Values**:\n- Positive values: Encourage more diverse topics\n- Negative values: Keep discussion more focused\n- 0.0: Default behavior\n\n**Example**: 1.0 to promote topic diversity" response_format: type: object additionalProperties: {} description: "Specify the desired response format for the completion. \n\n**Example**:\n```json\n{\n \"response_format\": {\n \"type\": \"json_object\",\n \"schema\": {...}\n }\n}\n```" seed: type: integer description: "Set a seed for deterministic sampling to reproduce consistent results. \n\n**Example**: 42 for a reproducible random generation process" service_tier: allOf: - $ref: '#/components/schemas/ServiceTierEnum' description: "Select the service tier for the API request. \n\n**Choices**:\n- 'auto': Automatically select appropriate tier\n- 'default': Use default service configuration\n\n* `auto` - auto\n* `default` - default" stop: type: array items: type: string minLength: 1 description: "List of strings that will cause the model to stop generating. \n\n**Example**:\n```json\n{\n \"stop\": [\"\\n\", \"Human:\", \"AI:\"]\n}\n```" stream: type: boolean default: false description: "If True, returns tokens as they are generated in a streaming format. \nDefault is False. \n\n**Example**: True for real-time token streaming" stream_options: type: object additionalProperties: {} description: "Additional configuration for streaming responses. \n\n**Example**:\n```json\n{\n \"stream_options\": {\n \"include_usage\": true\n }\n}\n```" temperature: type: number format: double maximum: 2 minimum: 0 description: "Controls randomness in token selection. \nRanges from 0.0 to 2.0. \n\n**Values**:\n- 0.0: Most deterministic, focused responses\n- 1.0: Balanced randomness\n- 2.0: Most creative, unpredictable responses\n\n**Example**: 0.7 for a good balance of creativity and focus" top_p: type: number format: double maximum: 1 minimum: 0 description: "Nucleus sampling threshold for token selection. \nRanges from 0.0 to 1.0. Default is 1.0. \n\n**Values**:\n- 1.0: Consider all tokens\n- Lower values: More focused, deterministic sampling\n\n**Example**: 0.9 to select from top 90% most probable tokens" tools: type: array items: {} description: "List of tools or function definitions available to the model. \n\n**Example**:\n```json\n{\n \"tools\": [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_weather\",\n \"description\": \"Retrieve current weather\"\n }\n }\n ]\n}\n```" tool_choice: type: string minLength: 1 description: "Specify how tools should be used in the completion. \n\n**Example values**:\n- 'auto': Model decides when to use tools\n- 'none': Disable tool usage\n- Specific tool name to always use a particular tool" parallel_tool_calls: type: boolean description: "Allow the model to make multiple tool calls in parallel. \n\n**Example**: True to enable concurrent tool invocations" user: type: string minLength: 1 description: "Optional identifier for the end-user to help track and monitor API usage. \n\n**Example**: 'user_123456'" function_call: type: string minLength: 1 description: "Control how function calls are handled. \n\n**Example values**:\n- 'auto': Default behavior\n- 'none': Disable function calls\n- Specific function name to force its execution" functions: type: array items: type: object additionalProperties: {} description: "List of function definitions available to the model. \n\n**Example**:\n```json\n{\n \"functions\": [\n {\n \"name\": \"get_current_weather\",\n \"description\": \"Get the current weather for a location\",\n \"parameters\": {...}\n }\n ]\n}\n```" thinking: allOf: - $ref: '#/components/schemas/ThinkingRequest' description: "Configuration for enabling Claude's extended thinking. When enabled, responses include thinking content blocks showing Claude's thinking process before the final answer. Requires a minimum budget of 1,024 tokens and counts towards your max_tokens limit.\n\n**Example**:\n```json\n{\n 'thinking': {\n 'type': 'enabled'\n 'budget_tokens': '1024' }\n}\n```" web_search_options: type: object additionalProperties: {} description: "Options for web search integration. \n **Example**:\n ```json\n web_search_options={\n \"search_context_size\": \"medium\" # Options: \"low\", \"medium\", \"high\"\n }\n ```" required: - messages - model BadRequest: type: object properties: error: $ref: '#/components/schemas/NestedBadRequest' required: - error multimodalchatResponseModel: properties: amazon: $ref: '#/components/schemas/multimodalchatChatDataClass' default: null mistral: $ref: '#/components/schemas/multimodalchatChatDataClass' default: null openai: $ref: '#/components/schemas/multimodalchatChatDataClass' default: null microsoft: $ref: '#/components/schemas/multimodalchatChatDataClass' default: null xai: $ref: '#/components/schemas/multimodalchatChatDataClass' default: null google: $ref: '#/components/schemas/multimodalchatChatDataClass' default: null anthropic: $ref: '#/components/schemas/multimodalchatChatDataClass' default: null title: multimodalchatResponseModel type: object multimodalchatChatRequest: type: object properties: settings: type: string default: {} description: "A dictionnary or a json object to specify specific models to use for some providers.
It can be in the following format: {\"google\" : \"google_model\", \"ibm\": \"ibm_model\"...}.\n " providers: type: array items: type: string minLength: 1 description: 'It can be one (ex: **''amazon''** or **''google''**) or multiple provider(s) (ex: **''amazon,microsoft,google''**) that the data will be redirected to in order to get the processed results.
Providers can also be invoked with specific models (ex: providers: **''amazon/model1, amazon/model2, google/model3''**)' fallback_providers: type: array items: type: string default: [] description: "Providers in this list will be used as fallback if the call to provider in `providers` parameter fails.\n To use this feature, you must input **only one** provider in the `providers` parameter. but you can put up to 5 fallbacks.\n\nThey will be tried in the same order they are input, and it will stop to the first provider who doesn't fail.\n\n\n*Doesn't work with async subfeatures.*\n " maxItems: 5 response_as_dict: type: boolean default: true description: "Optional : When set to **true** (default), the response is an object of responses with providers names as keys :
\n ``` {\"google\" : { \"status\": \"success\", ... }, } ```
\n When set to **false** the response structure is a list of response objects :
\n ``` [{\"status\": \"success\", \"provider\": \"google\" ... }, ] ```.
\n " attributes_as_list: type: boolean default: false description: "Optional : When set to **false** (default) the structure of the extracted items is list of objects having different attributes :
\n ```{'items': [{\"attribute_1\": \"x1\",\"attribute_2\": \"y2\"}, ... ]}```
\n When it is set to **true**, the response contains an object with each attribute as a list :
\n ```{ \"attribute_1\": [\"x1\",\"x2\", ...], \"attribute_2\": [y1, y2, ...]}``` " show_base_64: type: boolean default: true show_original_response: type: boolean default: false description: "Optional : Shows the original response of the provider.
\n When set to **true**, a new attribute *original_response* will appear in the response object." messages: type: array items: type: object additionalProperties: {} description: "A list containing all the conversations between the user and the assistant. Each item in the list should be a dictionary with two keys: 'role' and 'message'.\n\n**role**: Specifies the role of the speaker and can have the values 'user' or 'assistant'.\n\n**message**: A list of dictionaries. Each dictionary in the 'message' list must contain the keys 'type' and 'content'.\n\n#### Structure\n- **type**: Specifies the type of content and can be 'media_url', 'media_base64', or 'text'.\n- **content**: A dictionary with the actual content based on the 'type':\n - If 'type' is 'media_url', 'content' must contain 'media_url' and must not contain 'media_base64' or 'text'.\n - If 'type' is 'media_base64', 'content' must contain 'media_base64' and must not contain 'media_url' or 'text'.\n - If 'type' is 'text', 'content' must contain 'text' and must not contain 'media_url' or 'media_base64'.\n\n#### Example\n```json\n[\n {\n 'role': 'user',\n 'content': [\n {\n 'type': 'text',\n 'content': {'text': 'Describe this image'}\n },\n {\n 'type': 'media_url',\n 'content': {\n 'media_url': 'https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg',\n 'media_type': 'image/jpeg'}\n },\n ]\n }\n]\n```" chatbot_global_action: type: - string - 'null' description: A system message that helps set the behavior of the assistant. For example, 'You are a helpful assistant'. temperature: type: number format: double maximum: 2 minimum: 0 default: 0.0 description: Controls the creativity of the model's responses. Higher values (up to 2) make the output more random, while lower values make it more focused and deterministic. A value of 0 (argmax sampling) is useful for scenarios requiring precise answers. max_tokens: type: integer maximum: 300000 minimum: 1 default: 2048 description: The maximum number of tokens to generate in the completion. This value, combined with the token count of your prompt, cannot exceed the model's context length. stop_sequences: type: array items: type: string default: [] description: A list of sequences where the model will stop generating further tokens. Useful for controlling response length and format. top_k: type: integer maximum: 500 minimum: 0 description: Limits the sampling pool to the top K options for each token. Setting this to a lower value can make the output more focused and deterministic. top_p: type: number format: double maximum: 1 minimum: 0 description: Enables nucleus sampling, where the model considers the smallest number of tokens whose cumulative probability is at least top_p. This allows for a dynamic selection of tokens based on probability, offering a balance between focus and creativity. reasoning_effort: allOf: - $ref: '#/components/schemas/ReasoningEffortEnum' description: "Optional parameter to control the model's reasoning depth. \nAllows specifying the level of analytical effort in generating responses. \n\n**Choices**:\n- 'low': Minimal reasoning, quick responses\n- 'medium': Balanced reasoning approach\n- 'high': In-depth, comprehensive reasoning\n\n**Example**: 'high' for complex problem-solving tasks\n\n* `low` - low\n* `medium` - medium\n* `high` - high" required: - messages - providers ChatMessageDataClass: properties: role: title: Role type: string content: items: $ref: '#/components/schemas/ChatMessage_2' title: Content type: array required: - role title: ChatMessageDataClass type: object multimodalchatChatDataClass: properties: generated_text: title: Generated Text type: string messages: items: $ref: '#/components/schemas/ChatMessageDataClass' title: Messages type: array original_response: default: null description: original response sent by the provider, hidden by default, show it by passing the `show_original_response` field to `true` in your request title: Original Response status: allOf: - $ref: '#/components/schemas/StatusEnum' title: Status required: - generated_text - status title: multimodalchatChatDataClass type: object ChatMessage_2: properties: type: allOf: - $ref: '#/components/schemas/TypeEnum_2' title: Type content: $ref: '#/components/schemas/ChatMessageContent' required: - type - content title: ChatMessage type: object ChatMessageContent: properties: media_url: default: null title: Media Url type: string media_base64: default: null title: Media Base64 type: string text: default: null title: Text type: string media_type: default: null title: Media Type type: string title: ChatMessageContent type: object TypeEnum_2: enum: - media_url - media_base64 - text type: string ToolCall: properties: id: title: Id type: string name: title: Name type: string arguments: title: Arguments type: string required: - id - name - arguments title: ToolCall type: object textchatChatRequest: type: object properties: settings: type: string default: {} description: "A dictionnary or a json object to specify specific models to use for some providers.
It can be in the following format: {\"google\" : \"google_model\", \"ibm\": \"ibm_model\"...}.\n " providers: type: array items: type: string minLength: 1 description: 'It can be one (ex: **''amazon''** or **''google''**) or multiple provider(s) (ex: **''amazon,microsoft,google''**) that the data will be redirected to in order to get the processed results.
Providers can also be invoked with specific models (ex: providers: **''amazon/model1, amazon/model2, google/model3''**)' fallback_providers: type: array items: type: string default: [] description: "Providers in this list will be used as fallback if the call to provider in `providers` parameter fails.\n To use this feature, you must input **only one** provider in the `providers` parameter. but you can put up to 5 fallbacks.\n\nThey will be tried in the same order they are input, and it will stop to the first provider who doesn't fail.\n\n\n*Doesn't work with async subfeatures.*\n " maxItems: 5 response_as_dict: type: boolean default: true description: "Optional : When set to **true** (default), the response is an object of responses with providers names as keys :
\n ``` {\"google\" : { \"status\": \"success\", ... }, } ```
\n When set to **false** the response structure is a list of response objects :
\n ``` [{\"status\": \"success\", \"provider\": \"google\" ... }, ] ```.
\n " attributes_as_list: type: boolean default: false description: "Optional : When set to **false** (default) the structure of the extracted items is list of objects having different attributes :
\n ```{'items': [{\"attribute_1\": \"x1\",\"attribute_2\": \"y2\"}, ... ]}```
\n When it is set to **true**, the response contains an object with each attribute as a list :
\n ```{ \"attribute_1\": [\"x1\",\"x2\", ...], \"attribute_2\": [y1, y2, ...]}``` " show_base_64: type: boolean default: true show_original_response: type: boolean default: false description: "Optional : Shows the original response of the provider.
\n When set to **true**, a new attribute *original_response* will appear in the response object." text: type: - string - 'null' default: '' description: Start your conversation here... chatbot_global_action: type: - string - 'null' default: '' description: A system message that helps set the behavior of the assistant. For example, 'You are a helpful assistant'. previous_history: type: array items: $ref: '#/components/schemas/ChatMessageRequest' description: 'A list containing all the previous conversations between the user and the chatbot AI. Each item in the list should be a dictionary with two keys: ''role'' and ''message''. The ''role'' key specifies the role of the speaker and can have the values ''user'' or ''assistant''. The ''message'' key contains the text of the conversation from the respective role. For example: [{''role'': ''user'', ''message'': ''Hello''}, {''role'': ''assistant'', ''message'': ''Hi, how can I help you?''}, ...]. This format allows easy identification of the speaker''s role and their corresponding message.' temperature: type: number format: double maximum: 2 minimum: 0 default: 0.0 description: Higher values mean the model will take more risks and value 0 (argmax sampling) works better for scenarios with a well-defined answer. max_tokens: type: integer minimum: 1 default: 4096 description: The maximum number of tokens to generate in the completion. The token count of your prompt plus max_tokens cannot exceed the model's context length. tool_choice: allOf: - $ref: '#/components/schemas/ToolChoiceEnum' default: auto description: '`auto`: the model will choose to use tools if needed, `required`: force model to use any of the available tools, `none`: force model to not select a tool * `auto` - auto * `required` - required * `none` - none' available_tools: type: array items: $ref: '#/components/schemas/ChatAvailableToolsRequest' description: A list of tools the model may generate the right arguments for. tool_results: type: array items: $ref: '#/components/schemas/ChatToolResultRequest' description: List of results obtained from applying the tool_call arguments to your own tool. reasoning_effort: allOf: - $ref: '#/components/schemas/ReasoningEffortEnum' description: "Optional parameter to control the model's reasoning depth. \nAllows specifying the level of analytical effort in generating responses. \n\n**Choices**:\n- 'low': Minimal reasoning, quick responses\n- 'medium': Balanced reasoning approach\n- 'high': In-depth, comprehensive reasoning\n\n**Example**: 'high' for complex problem-solving tasks\n\n* `low` - low\n* `medium` - medium\n* `high` - high" required: - providers ChatToolCallsRequest: type: object properties: id: type: string minLength: 1 name: type: string minLength: 1 arguments: type: string minLength: 1 required: - arguments - id - name textchatChatDataClass: properties: generated_text: title: Generated Text type: string message: items: $ref: '#/components/schemas/ChatMessageDataClass_2' title: Message type: array original_response: default: null description: original response sent by the provider, hidden by default, show it by passing the `show_original_response` field to `true` in your request title: Original Response status: allOf: - $ref: '#/components/schemas/StatusEnum' title: Status required: - generated_text - status title: textchatChatDataClass type: object textchatChatStreamRequest: type: object properties: settings: type: string default: {} description: "A dictionnary or a json object to specify specific models to use for some providers.
It can be in the following format: {\"google\" : \"google_model\", \"ibm\": \"ibm_model\"...}.\n " providers: type: array items: type: string minLength: 1 description: 'It can be one (ex: **''amazon''** or **''google''**) or multiple provider(s) (ex: **''amazon,microsoft,google''**) that the data will be redirected to in order to get the processed results.
Providers can also be invoked with specific models (ex: providers: **''amazon/model1, amazon/model2, google/model3''**)' fallback_providers: type: array items: type: string default: [] description: "Providers in this list will be used as fallback if the call to provider in `providers` parameter fails.\n To use this feature, you must input **only one** provider in the `providers` parameter. but you can put up to 5 fallbacks.\n\nThey will be tried in the same order they are input, and it will stop to the first provider who doesn't fail.\n\n\n*Doesn't work with async subfeatures.*\n " maxItems: 5 response_as_dict: type: boolean default: true description: "Optional : When set to **true** (default), the response is an object of responses with providers names as keys :
\n ``` {\"google\" : { \"status\": \"success\", ... }, } ```
\n When set to **false** the response structure is a list of response objects :
\n ``` [{\"status\": \"success\", \"provider\": \"google\" ... }, ] ```.
\n " attributes_as_list: type: boolean default: false description: "Optional : When set to **false** (default) the structure of the extracted items is list of objects having different attributes :
\n ```{'items': [{\"attribute_1\": \"x1\",\"attribute_2\": \"y2\"}, ... ]}```
\n When it is set to **true**, the response contains an object with each attribute as a list :
\n ```{ \"attribute_1\": [\"x1\",\"x2\", ...], \"attribute_2\": [y1, y2, ...]}``` " show_base_64: type: boolean default: true show_original_response: type: boolean default: false description: "Optional : Shows the original response of the provider.
\n When set to **true**, a new attribute *original_response* will appear in the response object." text: type: - string - 'null' default: '' description: Start your conversation here... chatbot_global_action: type: - string - 'null' default: '' description: A system message that helps set the behavior of the assistant. For example, 'You are a helpful assistant'. previous_history: type: array items: $ref: '#/components/schemas/ChatMessageRequest' description: 'A list containing all the previous conversations between the user and the chatbot AI. Each item in the list should be a dictionary with two keys: ''role'' and ''message''. The ''role'' key specifies the role of the speaker and can have the values ''user'' or ''assistant''. The ''message'' key contains the text of the conversation from the respective role. For example: [{''role'': ''user'', ''message'': ''Hello''}, {''role'': ''assistant'', ''message'': ''Hi, how can I help you?''}, ...]. This format allows easy identification of the speaker''s role and their corresponding message.' temperature: type: number format: double maximum: 2 minimum: 0 default: 0.0 description: Higher values mean the model will take more risks and value 0 (argmax sampling) works better for scenarios with a well-defined answer. max_tokens: type: integer minimum: 1 default: 4096 description: The maximum number of tokens to generate in the completion. The token count of your prompt plus max_tokens cannot exceed the model's context length. tool_choice: allOf: - $ref: '#/components/schemas/ToolChoiceEnum' default: auto description: '`auto`: the model will choose to use tools if needed, `required`: force model to use any of the available tools, `none`: force model to not select a tool * `auto` - auto * `required` - required * `none` - none' available_tools: type: array items: $ref: '#/components/schemas/ChatAvailableToolsRequest' description: A list of tools the model may generate the right arguments for. tool_results: type: array items: $ref: '#/components/schemas/ChatToolResultRequest' description: List of results obtained from applying the tool_call arguments to your own tool. reasoning_effort: allOf: - $ref: '#/components/schemas/ReasoningEffortEnum' description: "Optional parameter to control the model's reasoning depth. \nAllows specifying the level of analytical effort in generating responses. \n\n**Choices**:\n- 'low': Minimal reasoning, quick responses\n- 'medium': Balanced reasoning approach\n- 'high': In-depth, comprehensive reasoning\n\n**Example**: 'high' for complex problem-solving tasks\n\n* `low` - low\n* `medium` - medium\n* `high` - high" fallback_type: allOf: - $ref: '#/components/schemas/FallbackTypeEnum' default: continue required: - providers textchatResponseModel: properties: xai: $ref: '#/components/schemas/textchatChatDataClass' default: null deepseek: $ref: '#/components/schemas/textchatChatDataClass' default: null anthropic: $ref: '#/components/schemas/textchatChatDataClass' default: null openai: $ref: '#/components/schemas/textchatChatDataClass' default: null perplexityai: $ref: '#/components/schemas/textchatChatDataClass' default: null groq: $ref: '#/components/schemas/textchatChatDataClass' default: null together_ai: $ref: '#/components/schemas/textchatChatDataClass' default: null microsoft: $ref: '#/components/schemas/textchatChatDataClass' default: null meta: $ref: '#/components/schemas/textchatChatDataClass' default: null cohere: $ref: '#/components/schemas/textchatChatDataClass' default: null replicate: $ref: '#/components/schemas/textchatChatDataClass' default: null mistral: $ref: '#/components/schemas/textchatChatDataClass' default: null amazon: $ref: '#/components/schemas/textchatChatDataClass' default: null google: $ref: '#/components/schemas/textchatChatDataClass' default: null title: textchatResponseModel type: object ChatAvailableToolsRequest: type: object properties: name: type: string minLength: 1 description: The name of your tool/function description: type: string parameters: description: "The tool's parameters are specified using a JSON Schema object. Detailed format documentation is available in the [JSON Schema reference](https://json-schema.org/understanding-json-schema/).\n\n**Make sure to well describe each parameter for best results.**\n\n\nExample for a weather tool:\n\n {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\"\n \"description\": \"The geographical location for which weather data is requested.\"\n },\n \"unit\": {\n \"type\": \"string\", \"enum\": [\"Celsius\", \"Fahrenheit\"]\n \"description\": \"The unit of measurement for temperature.\"\n }\n },\n \"required\": [\"location\"]\n }\n " FallbackTypeEnum: enum: - rerun - continue type: string description: '* `rerun` - Rerun * `continue` - Continue' ChatMessageRequest: type: object properties: role: type: string minLength: 1 message: {} tools: type: - array - 'null' items: $ref: '#/components/schemas/ChatAvailableToolsRequest' tool_calls: type: - array - 'null' items: $ref: '#/components/schemas/ChatToolCallsRequest' required: - message - role ChatMessageDataClass_2: properties: role: title: Role type: string message: default: '' title: Message type: string tools: default: null description: Tools defined by the user items: additionalProperties: true type: object title: Tools type: array tool_calls: default: null description: The tools arguments generated from tools definition and user prompt. items: $ref: '#/components/schemas/ToolCall' title: Tool Calls type: array required: - role title: ChatMessageDataClass type: object ToolChoiceEnum: enum: - auto - required - none type: string description: '* `auto` - auto * `required` - required * `none` - none' ChatToolResultRequest: type: object properties: id: type: string minLength: 1 description: the id of the `tool_call` used to generate result result: type: string minLength: 1 description: the result of your function required: - id - result HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' type: array title: Detail type: object title: HTTPValidationError ChatCompletionUsage_2: properties: prompt_tokens: type: integer title: Prompt Tokens description: Tokens in the prompt. completion_tokens: type: integer title: Completion Tokens description: Tokens in the generated completion. total_tokens: type: integer title: Total Tokens description: Total tokens consumed by the request. prompt_tokens_details: anyOf: - additionalProperties: true type: object - type: 'null' title: Prompt Tokens Details description: Breakdown of prompt tokens (e.g. cached_tokens, audio_tokens). completion_tokens_details: anyOf: - additionalProperties: true type: object - type: 'null' title: Completion Tokens Details description: Breakdown of completion tokens (e.g. reasoning_tokens). additionalProperties: true type: object required: - prompt_tokens - completion_tokens - total_tokens title: ChatCompletionUsage description: Token usage block returned by the OpenAI-compatible chat completion API. ChatCompletionChoice_2: properties: index: type: integer title: Index description: Position of the choice in the list. message: $ref: '#/components/schemas/ChatCompletionMessage' description: Message produced by the model for this choice. finish_reason: anyOf: - type: string enum: - stop - length - tool_calls - content_filter - function_call - type: 'null' title: Finish Reason description: Reason the model stopped generating tokens. logprobs: anyOf: - additionalProperties: true type: object - type: 'null' title: Logprobs description: Log probability information for the choice, if requested. additionalProperties: true type: object required: - index - message title: ChatCompletionChoice description: A single choice in a chat completion response. GeminiImageConfig: properties: aspect_ratio: anyOf: - type: string - type: 'null' title: Aspect Ratio description: 'Output aspect ratio. Examples: ''1:1'', ''16:9'', ''9:16'', ''4:3'', ''3:4'', ''21:9''. Allowed set varies by model; see Gemini docs.' image_size: anyOf: - type: string - type: 'null' title: Image Size description: 'Output resolution. Examples: ''1K'', ''2K'', ''4K''. ''512'' is valid on Gemini 3.1 Flash Image only.' additionalProperties: false type: object title: GeminiImageConfig description: 'Image generation config for Gemini image models (google/gemini-2.5-flash-image). Values are passed through to Gemini''s generationConfig.imageConfig. Allowed values may vary by model — see https://ai.google.dev/gemini-api/docs/image-generation.' MessageFileB64Input: properties: file_data: type: string title: File Data description: The file data in base64 format. type: object required: - file_data title: MessageFileB64Input ProviderRoutingPreferences: properties: sort: anyOf: - type: string enum: - cost - speed - latency - exact - type: 'null' title: Sort description: What to optimise for when several providers serve the requested model. 'cost' (default) picks the cheapest for this request's shape; 'speed' the highest tokens/second; 'latency' the fastest to first token; 'exact' the most reliable at producing well-formed tool calls / structured output. Health is always a filter first — no mode will route you to a failing provider. Can also be written as a model suffix, e.g. 'gpt-5.5:speed'. sticky: anyOf: - type: boolean - type: 'null' title: Sticky description: Keep a conversation on the provider holding its prompt cache. On by default, and only ever active for models whose providers discount cache reads. Set false to route every request independently on price instead. Naming an explicit `sort` also takes priority over cache affinity. allow_fallbacks: type: boolean title: Allow Fallbacks description: 'Whether other providers of the same model may be tried when the chosen one fails. Set false to pin the request to the single best provider: it then fails rather than silently moving to another seller. useful when a cache-warm prompt would cold-miss elsewhere. This governs PROVIDERS of the requested model only; models you list in `fallbacks` are your own choice and are always kept.' default: true quality_cost: anyOf: - type: integer maximum: 10.0 minimum: 0.0 - type: 'null' title: Quality Cost description: 'Only with model=''@edenai'': how far to trade answer quality for cost when the platform chooses the MODEL. 0 asks for the best model for the request, 10 for the cheapest model that can still handle it, values in between blend the two; omit it to leave the choice to the platform (quality first). This is the one `routing` field that steers the model rather than the provider — `sort` never changes which model is chosen.' allowed_providers: anyOf: - items: type: string type: array - type: 'null' title: Allowed Providers description: Restrict routing to these providers, e.g. ['openai', 'anthropic']. Only providers that serve the requested model are considered, so an entry that does not sell it is simply inert. If none of them do, the request fails rather than falling back to a provider you excluded. Case-insensitive. Applies to routed providers only. a concrete 'provider/model' you named in `fallbacks` is your own choice and is kept. type: object title: ProviderRoutingPreferences description: 'How to choose between SELLERS of one model — and, with ``@edenai``, how far to trade quality for cost when the platform chooses the model. The seller fields are only meaningful when `model` is a canonical name (`gpt-5.5`) rather than a concrete `provider/model` — with a concrete id there is nothing to choose between. For choosing the MODEL itself see ``router_candidates`` and ``model="@edenai"``, which is a different router; ``quality_cost`` below is the one field here that speaks to it.' ChatCompletionResponse: properties: id: type: string title: Id description: Unique identifier for the chat completion. object: type: string const: chat.completion title: Object description: Object type. Always 'chat.completion' for this endpoint. default: chat.completion created: type: integer title: Created description: Unix timestamp (seconds) when the completion was created. model: type: string title: Model description: Model that produced the completion. choices: items: $ref: '#/components/schemas/ChatCompletionChoice_2' type: array title: Choices description: List of completion choices generated for the request. usage: anyOf: - $ref: '#/components/schemas/ChatCompletionUsage_2' - type: 'null' description: Token usage statistics for the request. system_fingerprint: anyOf: - type: string - type: 'null' title: System Fingerprint description: Backend configuration fingerprint that produced the response. service_tier: anyOf: - type: string - type: 'null' title: Service Tier description: Service tier that processed the request. additionalProperties: true type: object required: - id - created - model - choices title: ChatCompletionResponse description: Response body for POST /chat/completions (non-streaming). MessageFileContent: properties: cache_control: anyOf: - $ref: '#/components/schemas/CacheControl' - type: 'null' prompt_cache_breakpoint: anyOf: - $ref: '#/components/schemas/PromptCacheBreakpoint' - type: 'null' type: type: string const: file title: Type file: anyOf: - $ref: '#/components/schemas/MessageFileUrlInput' - $ref: '#/components/schemas/MessageFileB64Input' title: File type: object required: - type - file title: MessageFileContent MessageTextContent: properties: cache_control: anyOf: - $ref: '#/components/schemas/CacheControl' - type: 'null' prompt_cache_breakpoint: anyOf: - $ref: '#/components/schemas/PromptCacheBreakpoint' - type: 'null' type: type: string const: text title: Type text: type: string title: Text description: The text content of the message. type: object required: - type - text title: MessageTextContent PromptCacheBreakpoint: properties: mode: anyOf: - type: string const: explicit - type: string - type: 'null' title: Mode description: Breakpoint mode. Currently only "explicit" is defined; the known value is advertised in the schema but not enforced, so a new provider value works without an Eden AI release. Leave unset for the provider default. additionalProperties: true type: object title: PromptCacheBreakpoint description: 'Marks the end of a reusable prompt prefix (OpenAI GPT-5.6 and newer). Set it on the last content part of the stable prefix you want cached: the prompt up to and including that part is stored and reused on later requests that share it, reducing latency and cost. Providers enforce a minimum token count below which caching is skipped. Ignored by models that don''t support explicit cache breakpoints.' MessageRefusalContent: properties: cache_control: anyOf: - $ref: '#/components/schemas/CacheControl' - type: 'null' prompt_cache_breakpoint: anyOf: - $ref: '#/components/schemas/PromptCacheBreakpoint' - type: 'null' type: type: string const: refusal title: Type refusal: type: string title: Refusal description: The refusal message generated by the model. type: object required: - type - refusal title: MessageRefusalContent LlmCompletionBody: properties: routing: anyOf: - $ref: '#/components/schemas/ProviderRoutingPreferences' - type: 'null' description: 'How to pick between the providers that serve the requested model. Applies when `model` is a model name with no provider prefix (e.g. ''gpt-5.5''); ignored for a concrete ''provider/model'' id, which already names its provider. With model=''@edenai'' the platform chooses the model too: `quality_cost` steers that choice, and the provider fields apply whenever the chosen model is a provider-less name.' fallbacks: anyOf: - items: type: string type: array maxItems: 3 - type: 'null' title: Fallbacks description: 'List of fallback model IDs to try if the primary model fails. Models are tried in order. Example: [''anthropic/claude-3-opus'', ''openai/gpt-4o'']' session_id: anyOf: - type: string maxLength: 256 - type: 'null' title: Session Id description: Identifies a conversation, so its requests keep reaching the provider that holds its prompt cache. Any stable string you choose — a thread id, a ticket number, an agent run. Also accepted as the `x-session-id` header, for clients that cannot add body fields; the body field wins if both are sent. Without one, a conversation is recognised from its opening messages instead. router_candidates: anyOf: - items: type: string maxLength: 128 type: array maxItems: 64 - type: 'null' title: Router Candidates description: Models the '@edenai' router may choose BETWEEN — it picks the model, whereas `routing` picks the provider for a model you already named. Used only when model='@edenai'. Each entry is a bare model name (e.g. 'gpt-5.5' — the winner's provider is then picked like any provider-less request) or a 'provider/model' id (e.g. 'openai/gpt-5-nano' — the winner is served by that exact provider). Entries the router cannot rank are skipped and listed under `edenai_metadata.routing.auto.dropped`; entries naming a model already in the list collapse into its earliest spelling, which decides how the winner is returned. The request fails only when no entry is left. If not provided, the router chooses from a default pool of eligible catalog models. At most 64 entries of up to 128 characters each. pre_hooks: anyOf: - items: additionalProperties: true type: object type: array - type: 'null' title: Pre Hooks description: 'List of hooks to run before the LLM provider call. Each entry must have an ''action'' key and optional ''params''. Example: [{''action'': ''pdf_text_extract'', ''params'': {''method'': ''default''}}]' post_hooks: anyOf: - items: additionalProperties: true type: object type: array - type: 'null' title: Post Hooks description: 'List of hooks to run after the LLM provider call. Each entry must have an ''action'' key and optional ''params''. Example: [{''action'': ''json_heal'', ''params'': {''json_schema'': {...}}}]' model: type: string title: Model description: The name of the LLM model to use. messages: items: $ref: '#/components/schemas/Message' type: array title: Messages description: The messages to send to the LLM model. n: anyOf: - type: integer minimum: 1.0 - type: 'null' title: N description: The number of completions to generate for each prompt. Defaults to 1. default: 1 reasoning_effort: anyOf: - type: string enum: - minimal - low - medium - high - max - xhigh - disable - none - type: 'null' title: Reasoning Effort description: The reasoning effort level for the LLM model. metadata: anyOf: - additionalProperties: true type: object - type: 'null' title: Metadata description: Object of metadata associated with the chat request. Can be used to provide additional context or tracking information. frequency_penalty: anyOf: - type: number maximum: 2.0 minimum: -2.0 - type: 'null' title: Frequency Penalty description: Penalty for repeated tokens in the output. logit_bias: anyOf: - additionalProperties: type: number type: object - type: 'null' title: Logit Bias description: Logit bias to influence token generation. logprobs: anyOf: - type: boolean - type: 'null' title: Logprobs description: Whether to include log probabilities of tokens in the output. Defaults to False. default: false top_logprobs: anyOf: - type: integer maximum: 20.0 minimum: 0.0 - type: 'null' title: Top Logprobs description: Number of top log probabilities to return with each token. An integer between 0 and 20. max_tokens: anyOf: - type: integer minimum: 1.0 - type: 'null' title: Max Tokens description: The maximum number of tokens to generate in the chat completion max_completion_tokens: anyOf: - type: integer minimum: 1.0 - type: 'null' title: Max Completion Tokens description: An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens. modalities: anyOf: - items: type: string type: array - type: 'null' title: Modalities description: List of supported input/output modalities for the chat. prediction: anyOf: - additionalProperties: true type: object - type: 'null' title: Prediction description: field for storing prediction-related information. audio: anyOf: - additionalProperties: true type: object - type: 'null' title: Audio description: dictionary for audio-related parameters or metadata. presence_penalty: anyOf: - type: number maximum: 2.0 minimum: -2.0 - type: 'null' title: Presence Penalty description: Penalty for new tokens based on their presence in the text so far. response_format: anyOf: - additionalProperties: true type: object - type: 'null' title: Response Format description: Specify the desired response format for the completion. seed: anyOf: - type: integer - type: 'null' title: Seed description: Seed for random number generation. service_tier: anyOf: - type: string enum: - auto - default - flex - scale - priority - type: 'null' title: Service Tier description: '''auto'': Automatically select appropriate tier ''default'': Use the default service tier ''flex'': 50% cheaper processing with increased latency (OpenAI o3/o4-mini) ''scale'' / ''priority'': OpenAI scale and priority processing tiers' stop: anyOf: - type: string - items: type: string type: array - type: 'null' title: Stop description: 'Stop sequence(s) that end generation: a single string or a list of up to 4 strings.' stream: anyOf: - type: boolean - type: 'null' title: Stream description: Whether to stream the response in real-time. Defaults to False. default: false stream_options: anyOf: - additionalProperties: true type: object - type: 'null' title: Stream Options description: Options for streaming responses, such as chunk size or format. temperature: anyOf: - type: number maximum: 2.0 minimum: 0.0 - type: 'null' title: Temperature description: Sampling temperature for controlling randomness in output. top_p: anyOf: - type: number maximum: 1.0 minimum: 0.0 - type: 'null' title: Top P description: Nucleus sampling parameter for controlling diversity in output. Defaults to 1.0. default: 1.0 tools: anyOf: - items: additionalProperties: true type: object type: array - type: 'null' title: Tools description: List of tools that can be used by the model to assist in generating responses. tool_choice: anyOf: - type: string - additionalProperties: true type: object - type: 'null' title: Tool Choice description: Specify how tools should be used. Can be 'auto', 'required', 'none', or an object to force a specific tool. parallel_tool_calls: anyOf: - type: boolean - type: 'null' title: Parallel Tool Calls description: Whether to allow parallel tool calls in the completion. user: anyOf: - type: string - type: 'null' title: User description: User identifier for tracking or personalization purposes. function_call: anyOf: - type: string enum: - none - auto - additionalProperties: true type: object - type: 'null' title: Function Call description: 'Controls function calling (legacy). The string ''none'' or ''auto'', or an object forcing a specific function, e.g. {''name'': ''my_function''}.' functions: anyOf: - items: additionalProperties: true type: object type: array - type: 'null' title: Functions description: List of functions that can be called by the model to assist in generating responses. thinking: anyOf: - additionalProperties: true type: object - type: 'null' title: Thinking description: Parameters related to the model's reasoning or thinking process. web_search_options: anyOf: - additionalProperties: true type: object - type: 'null' title: Web Search Options description: 'Options for web search integration. Example: json web_search_options={ "search_context_size": "medium" # Options: "low", "medium", "high" }' verbosity: anyOf: - type: string enum: - low - medium - high - type: 'null' title: Verbosity description: 'Hint the model to be more or less expansive in its replies. Values: "low", "medium", "high". low (gpt5 models)' prompt_cache_key: anyOf: - type: string - type: 'null' title: Prompt Cache Key description: 'Prompt-cache routing hint (OpenAI): requests sharing a key and a common prompt prefix are routed to the same cache shard, improving hit rates for high-volume shared prefixes. Forwarded to providers that support it, dropped elsewhere. Also read for provider stickiness when no `session_id` or `x-session-id` is given.' prompt_cache_retention: anyOf: - type: string enum: - in_memory - 24h - type: string - type: 'null' title: Prompt Cache Retention description: 'How long the provider retains the prompt cache — OpenAI currently accepts "in_memory" (provider default, typically 5-10 minutes) and "24h" (extended retention, supported on gpt-5.x and gpt-4.1). The known values are advertised in the schema but not enforced: the value is passed through verbatim for the provider to validate, so new provider values work without an Eden AI release. Dropped for providers that don''t support it.' prompt_cache_options: anyOf: - $ref: '#/components/schemas/PromptCacheOptions' - type: 'null' description: Request-level prompt-cache settings (mode and ttl) for OpenAI GPT-5.6 and newer models. Ignored by models that don't support prompt caching. extra_body: anyOf: - additionalProperties: true type: object - type: 'null' title: Extra Body description: Additional parameters to pass in the request body to the provider API. image_config: anyOf: - $ref: '#/components/schemas/GeminiImageConfig' - type: 'null' description: Image generation configuration for Google Gemini image models (e.g. google/gemini-2.5-flash-image). extra_headers: anyOf: - additionalProperties: type: string type: object - type: 'null' title: Extra Headers description: Additional HTTP headers to pass to the provider API. type: object required: - model - messages title: LlmCompletionBody CacheControl: properties: type: type: string const: ephemeral title: Type description: Cache type. Currently only 'ephemeral' is supported. ttl: anyOf: - type: string - type: 'null' title: Ttl description: Optional cache time-to-live, e.g. '3600s'. Provider-dependent. type: object required: - type title: CacheControl description: 'Prompt-cache marker. Marks a message (or content part) as a cache boundary so that the prefix up to that point is stored and reused on subsequent requests, reducing latency and cost. Only a single contiguous cache-marked block is stored per request, and providers enforce a minimum token count below which caching is silently skipped. Silently ignored by providers that don''t support prompt caching.' MessageFileUrlInput: properties: file_id: type: string title: File Id description: 'File identifier: either a UUID from /v3/upload endpoint or an HTTP(S) URL.' type: object required: - file_id title: MessageFileUrlInput PromptCacheOptions: properties: mode: anyOf: - type: string enum: - implicit - explicit - type: string - type: 'null' title: Mode description: '"implicit" (default) caches automatically and also honors any prompt_cache_breakpoint you set; "explicit" caches only the blocks you mark with prompt_cache_breakpoint. Known values are advertised in the schema but not enforced.' ttl: anyOf: - type: string const: 30m - type: string - type: 'null' title: Ttl description: How long to keep the prompt cache, e.g. "30m". Leave unset for the provider default. Known values are advertised in the schema but not enforced. additionalProperties: true type: object title: PromptCacheOptions description: 'Request-level prompt-cache settings (OpenAI GPT-5.6 and newer). Controls how this request''s prompt cache behaves — whether caching happens automatically or only on the blocks you mark with ``prompt_cache_breakpoint``, and how long the cache is kept. Ignored by models that don''t support prompt caching.' MessageImageContent: properties: cache_control: anyOf: - $ref: '#/components/schemas/CacheControl' - type: 'null' prompt_cache_breakpoint: anyOf: - $ref: '#/components/schemas/PromptCacheBreakpoint' - type: 'null' type: type: string const: image_url title: Type image_url: $ref: '#/components/schemas/MessageImageUrl' type: object required: - type - image_url title: MessageImageContent ValidationError: properties: loc: items: anyOf: - type: string - type: integer type: array title: Location msg: type: string title: Message type: type: string title: Error Type type: object required: - loc - msg - type title: ValidationError Message: properties: role: type: string enum: - user - assistant - system - tool - developer - function title: Role description: The role of the message sender (e.g., 'user', 'assistant'). content: anyOf: - type: string - items: anyOf: - $ref: '#/components/schemas/MessageTextContent' - $ref: '#/components/schemas/MessageImageContent' - $ref: '#/components/schemas/MessageAudioContent' - $ref: '#/components/schemas/MessageFileContent' - $ref: '#/components/schemas/MessageRefusalContent' type: array - type: 'null' title: Content description: 'The content of the message: a string, or a list of content parts (text, image_url, input_audio, file, refusal).' cache_control: anyOf: - $ref: '#/components/schemas/CacheControl' - type: 'null' description: 'Optional prompt-cache marker. When set, this message becomes a cache boundary: prefix content is stored and reused on subsequent requests to reduce latency and cost. Silently ignored by providers that don''t support prompt caching.' additionalProperties: true type: object required: - role title: Message ChatCompletionMessage: properties: role: type: string const: assistant title: Role description: Role of the message author. default: assistant content: anyOf: - type: string - type: 'null' title: Content description: Content of the message. tool_calls: anyOf: - items: additionalProperties: true type: object type: array - type: 'null' title: Tool Calls description: Tool calls produced by the model, if any. refusal: anyOf: - type: string - type: 'null' title: Refusal description: Refusal message from the model, if any. reasoning_content: anyOf: - type: string - type: 'null' title: Reasoning Content description: Reasoning trace from the model, when supported by the provider. additionalProperties: true type: object title: ChatCompletionMessage description: Message returned in a chat completion choice. MessageImageUrl: properties: url: type: string title: Url type: object required: - url title: MessageImageUrl MessageAudioContent: properties: cache_control: anyOf: - $ref: '#/components/schemas/CacheControl' - type: 'null' prompt_cache_breakpoint: anyOf: - $ref: '#/components/schemas/PromptCacheBreakpoint' - type: 'null' type: type: string const: input_audio title: Type input_audio: $ref: '#/components/schemas/MessageAudioInput' type: object required: - type - input_audio title: MessageAudioContent MessageAudioInput: properties: data: type: string title: Data description: The audio data in base64 format or Http(s) link. format: anyOf: - type: string - type: 'null' title: Format description: The format of the audio file (e.g., 'mp3', 'wav'). type: object required: - data title: MessageAudioInput securitySchemes: FeatureApiAuth: type: http scheme: bearer bearerFormat: JWT AuthBearer: type: http scheme: bearer x-refined-from: - eden-ai-llm-features-openapi.json - eden-ai-multimodal-features-openapi.json - eden-ai-text-features-openapi.json - eden-ai-v3-openapi.json