{"uid":"cap_qsU8mKjdnCTV2zMcAQu7t","slug":"echo-router-chat-completions-d65abb71","name":"Echo Router Chat Completions","description":"Generates conversational AI responses using various language models. Supports streaming, function calling, and multi-turn conversations with customizable parameters.","url":"https://echo-staging.up.railway.app/chat/completions","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"n":{"type":"number"},"stop":{"type":"string"},"model":{"enum":["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-16k","gpt-3.5-turbo-instruct","gpt-3.5-turbo-instruct-0914","gpt-4","gpt-4-0125-preview","gpt-4-0613","gpt-4-1106-preview","gpt-4-turbo","gpt-4-turbo-2024-04-09","gpt-4-turbo-preview","gpt-4.1","gpt-4.1-2025-04-14","gpt-4.1-mini","gpt-4.1-mini-2025-04-14","gpt-4.1-nano","gpt-4.1-nano-2025-04-14","gpt-4o","gpt-4o-2024-05-13","gpt-4o-2024-08-06","gpt-4o-2024-11-20","gpt-4o-mini","gpt-4o-mini-2024-07-18","gpt-4o-mini-search-preview","gpt-4o-mini-search-preview-2025-03-11","gpt-4o-search-preview","gpt-4o-search-preview-2025-03-11","gpt-5","gpt-5-2025-08-07","gpt-5-chat-latest","gpt-5-codex","gpt-5-mini","gpt-5-mini-2025-08-07","gpt-5-nano","gpt-5-nano-2025-08-07","gpt-5-pro","gpt-5-pro-2025-10-06","gpt-5-search-api","gpt-5-search-api-2025-10-14","o1","o1-2024-12-17","o1-mini","o1-mini-2024-09-12","o1-pro","o1-pro-2025-03-19","o3","o3-2025-04-16","o3-deep-research","o3-deep-research-2025-06-26","o3-mini","o3-mini-2025-01-31","o3-pro","o3-pro-2025-06-10","claude-3-5-haiku-20241022","claude-3-5-sonnet-20240620","claude-3-5-sonnet-20241022","claude-3-7-sonnet-20250219","claude-3-haiku-20240307","claude-3-opus-20240229","claude-haiku-4-5-20251001","claude-opus-4-1-20250805","claude-opus-4-20250514","claude-sonnet-4-20250514","claude-sonnet-4-5-20250929","gemini-2.0-flash","gemini-2.0-flash-001","gemini-2.0-flash-exp","gemini-2.0-flash-exp-image-generation","gemini-2.0-flash-lite","gemini-2.0-flash-lite-001","gemini-2.0-flash-lite-preview","gemini-2.0-flash-lite-preview-02-05","gemini-2.0-flash-preview-image-generation","gemini-2.0-flash-thinking-exp","gemini-2.0-flash-thinking-exp-01-21","gemini-2.0-flash-thinking-exp-1219","gemini-2.5-flash","gemini-2.5-flash-image","gemini-2.5-flash-image-preview","gemini-2.5-flash-lite","gemini-2.5-flash-lite-preview-06-17","gemini-2.5-flash-lite-preview-09-2025","gemini-2.5-flash-preview-05-20","gemini-2.5-flash-preview-09-2025","gemini-2.5-flash-preview-tts","gemini-2.5-pro","gemini-2.5-pro-preview-03-25","gemini-2.5-pro-preview-05-06","gemini-2.5-pro-preview-06-05","gemini-2.5-pro-preview-tts","ai21/jamba-large-1.7","ai21/jamba-mini-1.7","aion-labs/aion-1.0","aion-labs/aion-1.0-mini","aion-labs/aion-rp-llama-3.1-8b","alfredpros/codellama-7b-instruct-solidity","alibaba/tongyi-deepresearch-30b-a3b","allenai/molmo-7b-d","allenai/olmo-2-0325-32b-instruct","alpindale/goliath-120b","amazon/nova-lite-v1","amazon/nova-micro-v1","amazon/nova-pro-v1","anthracite-org/magnum-v4-72b","anthropic/claude-3-haiku","anthropic/claude-3-opus","anthropic/claude-3.5-haiku","anthropic/claude-3.5-sonnet","anthropic/claude-3.5-sonnet-20240620","anthropic/claude-3.7-sonnet","anthropic/claude-3.7-sonnet:thinking","anthropic/claude-haiku-4.5","anthropic/claude-opus-4","anthropic/claude-opus-4.1","anthropic/claude-sonnet-4","anthropic/claude-sonnet-4.5","arcee-ai/afm-4.5b","arcee-ai/coder-large","arcee-ai/maestro-reasoning","arcee-ai/virtuoso-large","baidu/ernie-4.5-21b-a3b","baidu/ernie-4.5-21b-a3b-thinking","baidu/ernie-4.5-300b-a47b","baidu/ernie-4.5-vl-28b-a3b","baidu/ernie-4.5-vl-424b-a47b","bytedance/ui-tars-1.5-7b","cognitivecomputations/dolphin3.0-mistral-24b","cohere/command-a","cohere/command-r-08-2024","cohere/command-r-plus-08-2024","cohere/command-r7b-12-2024","deepcogito/cogito-v2-preview-deepseek-671b","deepcogito/cogito-v2-preview-llama-109b-moe","deepcogito/cogito-v2-preview-llama-405b","deepcogito/cogito-v2-preview-llama-70b","deepseek/deepseek-chat","deepseek/deepseek-chat-v3-0324","deepseek/deepseek-chat-v3.1","deepseek/deepseek-prover-v2","deepseek/deepseek-r1","deepseek/deepseek-r1-0528","deepseek/deepseek-r1-0528-qwen3-8b","deepseek/deepseek-r1-distill-llama-70b","deepseek/deepseek-r1-distill-qwen-14b","deepseek/deepseek-r1-distill-qwen-32b","deepseek/deepseek-v3.1-terminus","deepseek/deepseek-v3.2-exp","eleutherai/llemma_7b","google/gemini-2.0-flash-001","google/gemini-2.0-flash-lite-001","google/gemini-2.5-flash","google/gemini-2.5-flash-lite","google/gemini-2.5-flash-lite-preview-06-17","google/gemini-2.5-flash-lite-preview-09-2025","google/gemini-2.5-flash-preview-09-2025","google/gemini-2.5-pro","google/gemini-2.5-pro-preview","google/gemini-2.5-pro-preview-05-06","google/gemma-2-27b-it","google/gemma-2-9b-it","google/gemma-3-12b-it","google/gemma-3-27b-it","google/gemma-3-4b-it","google/gemma-3n-e4b-it","gryphe/mythomax-l2-13b","inception/mercury","inception/mercury-coder","inclusionai/ling-1t","inclusionai/ring-1t","inflection/inflection-3-pi","inflection/inflection-3-productivity","liquid/lfm-3b","liquid/lfm-7b","mancer/weaver","meituan/longcat-flash-chat","meta-llama/llama-3-70b-instruct","meta-llama/llama-3-8b-instruct","meta-llama/llama-3.1-405b","meta-llama/llama-3.1-405b-instruct","meta-llama/llama-3.1-70b-instruct","meta-llama/llama-3.1-8b-instruct","meta-llama/llama-3.2-11b-vision-instruct","meta-llama/llama-3.2-1b-instruct","meta-llama/llama-3.2-3b-instruct","meta-llama/llama-3.2-90b-vision-instruct","meta-llama/llama-3.3-70b-instruct","meta-llama/llama-4-maverick","meta-llama/llama-4-scout","meta-llama/llama-guard-2-8b","meta-llama/llama-guard-3-8b","meta-llama/llama-guard-4-12b","microsoft/mai-ds-r1","microsoft/phi-3-medium-128k-instruct","microsoft/phi-3-mini-128k-instruct","microsoft/phi-3.5-mini-128k-instruct","microsoft/phi-4","microsoft/phi-4-multimodal-instruct","microsoft/phi-4-reasoning-plus","microsoft/wizardlm-2-8x22b","minimax/minimax-m1","mistralai/codestral-2501","mistralai/codestral-2508","mistralai/devstral-medium","mistralai/devstral-small","mistralai/devstral-small-2505","mistralai/magistral-medium-2506","mistralai/magistral-medium-2506:thinking","mistralai/magistral-small-2506","mistralai/ministral-3b","mistralai/ministral-8b","mistralai/mistral-7b-instruct","mistralai/mistral-7b-instruct-v0.1","mistralai/mistral-7b-instruct-v0.2","mistralai/mistral-7b-instruct-v0.3","mistralai/mistral-large","mistralai/mistral-large-2407","mistralai/mistral-large-2411","mistralai/mistral-medium-3","mistralai/mistral-medium-3.1","mistralai/mistral-nemo","mistralai/mistral-saba","mistralai/mistral-small","mistralai/mistral-small-24b-instruct-2501","mistralai/mistral-small-3.1-24b-instruct","mistralai/mistral-small-3.2-24b-instruct","mistralai/mistral-tiny","mistralai/mixtral-8x22b-instruct","mistralai/mixtral-8x7b-instruct","mistralai/pixtral-12b","mistralai/pixtral-large-2411","moonshotai/kimi-dev-72b","moonshotai/kimi-k2","moonshotai/kimi-k2-0905","morph/morph-v3-fast","morph/morph-v3-large","neversleep/llama-3.1-lumimaid-8b","neversleep/noromaid-20b","nousresearch/deephermes-3-llama-3-8b-preview","nousresearch/deephermes-3-mistral-24b-preview","nousresearch/hermes-2-pro-llama-3-8b","nousresearch/hermes-3-llama-3.1-405b","nousresearch/hermes-4-405b","nousresearch/hermes-4-70b","nvidia/llama-3.1-nemotron-70b-instruct","nvidia/llama-3.1-nemotron-ultra-253b-v1","nvidia/llama-3.3-nemotron-super-49b-v1.5","nvidia/nemotron-nano-9b-v2","openai/chatgpt-4o-latest","openai/codex-mini","openai/gpt-3.5-turbo","openai/gpt-3.5-turbo-0613","openai/gpt-3.5-turbo-16k","openai/gpt-3.5-turbo-instruct","openai/gpt-4","openai/gpt-4-0314","openai/gpt-4-1106-preview","openai/gpt-4-turbo","openai/gpt-4-turbo-preview","openai/gpt-4.1","openai/gpt-4.1-mini","openai/gpt-4.1-nano","openai/gpt-4o","openai/gpt-4o-2024-05-13","openai/gpt-4o-2024-08-06","openai/gpt-4o-2024-11-20","openai/gpt-4o-mini","openai/gpt-4o-mini-2024-07-18","openai/gpt-4o-mini-search-preview","openai/gpt-4o-search-preview","openai/gpt-4o:extended","openai/gpt-5","openai/gpt-5-chat","openai/gpt-5-codex","openai/gpt-5-mini","openai/gpt-5-nano","openai/gpt-5-pro","openai/gpt-oss-120b","openai/gpt-oss-20b","openai/o1","openai/o1-mini","openai/o1-mini-2024-09-12","openai/o1-pro","openai/o3","openai/o3-deep-research","openai/o3-mini","openai/o3-mini-high","openai/o3-pro","openai/o4-mini","openai/o4-mini-deep-research","openai/o4-mini-high","opengvlab/internvl3-78b","perplexity/sonar","perplexity/sonar-deep-research","perplexity/sonar-pro","perplexity/sonar-reasoning","perplexity/sonar-reasoning-pro","qwen/qwen-2.5-72b-instruct","qwen/qwen-2.5-7b-instruct","qwen/qwen-2.5-vl-7b-instruct","qwen/qwen-max","qwen/qwen-plus","qwen/qwen-plus-2025-07-28","qwen/qwen-plus-2025-07-28:thinking","qwen/qwen-turbo","qwen/qwen-vl-max","qwen/qwen-vl-plus","qwen/qwen2.5-coder-7b-instruct","qwen/qwen2.5-vl-32b-instruct","qwen/qwen2.5-vl-72b-instruct","qwen/qwen3-14b","qwen/qwen3-235b-a22b","qwen/qwen3-235b-a22b-2507","qwen/qwen3-235b-a22b-thinking-2507","qwen/qwen3-30b-a3b","qwen/qwen3-30b-a3b-instruct-2507","qwen/qwen3-30b-a3b-thinking-2507","qwen/qwen3-32b","qwen/qwen3-8b","qwen/qwen3-coder","qwen/qwen3-coder-30b-a3b-instruct","qwen/qwen3-coder-flash","qwen/qwen3-coder-plus","qwen/qwen3-max","qwen/qwen3-next-80b-a3b-instruct","qwen/qwen3-vl-235b-a22b-instruct","qwen/qwen3-vl-235b-a22b-thinking","qwen/qwen3-vl-30b-a3b-instruct","qwen/qwen3-vl-30b-a3b-thinking","qwen/qwen3-vl-8b-instruct","qwen/qwen3-vl-8b-thinking","qwen/qwq-32b","raifle/sorcererlm-8x22b","sao10k/l3-euryale-70b","sao10k/l3-lunaris-8b","sao10k/l3.1-70b-hanami-x1","sao10k/l3.1-euryale-70b","sao10k/l3.3-euryale-70b","shisa-ai/shisa-v2-llama3.3-70b","stepfun-ai/step3","switchpoint/router","tencent/hunyuan-a13b-instruct","thedrummer/anubis-70b-v1.1","thedrummer/cydonia-24b-v4.1","thedrummer/rocinante-12b","thedrummer/skyfall-36b-v2","thedrummer/unslopnemo-12b","thudm/glm-4.1v-9b-thinking","thudm/glm-z1-32b","tngtech/deepseek-r1t-chimera","tngtech/deepseek-r1t2-chimera","undi95/remm-slerp-l2-13b","x-ai/grok-3","x-ai/grok-3-beta","x-ai/grok-3-mini","x-ai/grok-3-mini-beta","x-ai/grok-4","x-ai/grok-4-fast","x-ai/grok-code-fast-1","z-ai/glm-4-32b","z-ai/glm-4.5","z-ai/glm-4.5-air","z-ai/glm-4.5v","z-ai/glm-4.6","llama-3.1-8b-instant","llama-3.3-70b-versatile","meta-llama/llama-4-maverick-17b-128e-instruct","meta-llama/llama-4-scout-17b-16e-instruct","meta-llama/llama-prompt-guard-2-22m","meta-llama/llama-prompt-guard-2-86m","moonshotai/kimi-k2-instruct-0905","grok-2-vision-1212","grok-3","grok-3-mini","grok-4-0709","grok-4-fast-non-reasoning","grok-4-fast-reasoning","grok-code-fast-1"],"type":"string"},"top_p":{"type":"number"},"stream":{"type":"boolean"},"messages":{"type":"array"},"functions":{"type":"array"},"logit_bias":{"type":"object"},"max_tokens":{"type":"number"},"temperature":{"type":"number"},"function_call":{"type":"string"},"response_format":{"type":"string"},"presence_penalty":{"type":"number"},"frequency_penalty":{"type":"number"}}},"responseSchema":{"id":{"type":"string"},"model":{"type":"string"},"usage":{"type":"object","required":["prompt_tokens","completion_tokens","total_tokens"],"properties":{"total_tokens":{"type":"number"},"prompt_tokens":{"type":"number"},"completion_tokens":{"type":"number"},"completion_tokens_details":{"type":"object","properties":{"reasoning_tokens":{"type":"number"},"accepted_prediction_tokens":{"type":"number"},"rejected_prediction_tokens":{"type":"number"}},"additionalProperties":false}},"additionalProperties":false},"object":{"enum":["chat.completion"],"type":"string"},"choices":{"type":"array","items":{"type":"object","required":["index","message","finish_reason"],"properties":{"index":{"type":"number"},"message":{"type":"object","required":["role","content"],"properties":{"name":{"type":"string"},"role":{"enum":["system","user","assistant","function"],"type":"string"},"content":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"object","required":["type"],"properties":{"text":{"type":"string"},"type":{"type":"string"}},"additionalProperties":false}}],"nullable":true},"tool_calls":{"type":"array","items":{"type":"object","required":["id","type","function"],"properties":{"id":{"type":"string"},"type":{"enum":["function"],"type":"string"},"function":{"type":"object","required":["name","arguments"],"properties":{"name":{"type":"string"},"arguments":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}},"function_call":{"type":"object","required":["name","arguments"],"properties":{"name":{"type":"string"},"arguments":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false},"logprobs":{"type":"object","nullable":true,"required":["content"],"properties":{"content":{"type":"array","items":{"type":"object","required":["token","logprob","bytes"],"properties":{"bytes":{"type":"array","items":{"type":"number"},"nullable":true},"token":{"type":"string"},"logprob":{"type":"number"},"top_logprobs":{"type":"array","items":{"type":"object","required":["token","logprob","bytes"],"properties":{"bytes":{"type":"array","items":{"type":"number"},"nullable":true},"token":{"type":"string"},"logprob":{"type":"number"}},"additionalProperties":false}}},"additionalProperties":false},"nullable":true}},"additionalProperties":false},"finish_reason":{"enum":["stop","length","tool_calls","content_filter","function_call"],"type":"string","nullable":true}},"additionalProperties":false}},"created":{"type":"number"},"system_fingerprint":{"type":"string","nullable":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":1,"rating":{"score":"0.75","successRate":"0.00","reviews":1,"stars":"4.0","state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"unknown","summary":"price unknown","primary":{"kind":"unknown","protocol":"x402","network":"base","amountUsd":null,"per":"call","confidence":"unknown"},"accepted":[{"kind":"unknown","protocol":"x402","network":"base","amountUsd":null,"per":"call","confidence":"unknown"}]},"paymentMethods":[{"uid":"pm_1XKD2wXvfqb6NAhW0dEfD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates conversational AI responses using various language models with support for streaming, function calling, and multi-turn conversations","exampleAgentPrompt":"Chat with the Echo Router using gpt-4o — send this multi-turn conversation: system says 'You are a helpful assistant', user asks 'What is the capital of France?', stream the response back, and keep max_tokens at 256 with temperature 0.7.","exampleUseCases":null,"resultDescription":"Returns a chat.completion object with an array of choices, each containing the assistant's message (role + content), finish reason, and optional function_call or tool_calls. Also includes token usage stats (prompt_tokens, completion_tokens, total_tokens) and the model used.","failureModes":["Invalid or unsupported model name returns an error","Malformed messages array (missing role or content) causes a 400 error","Exceeding max_tokens limit for the selected model results in truncation or error","Streaming failures may cause partial response delivery","Function definitions with invalid JSON schema may be rejected","Rate limiting or quota exhaustion on the staging environment"],"whenToPreferThis":"Choose this endpoint when you need OpenAI-compatible chat completions with multi-turn conversation support, function/tool calling, and streaming via an x402-gated API. Ideal for agents that need to chain LLM calls programmatically without managing their own model infrastructure, especially when paying per-call with crypto micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":1,"lastUsedAt":"2026-07-17T19:59:01.775Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:34:37.800Z","isFirstParty":false}