{"slug":"sol-onhub-ai-v1-chat-completions-f21ced","title":"Text completion using the model selected in the request body","host":"sol.onhub.ai","method":"POST","resource":"https://sol.onhub.ai/v1/chat/completions","category":"other","description":"Text completion using the model selected in the request body.","price_listed":null,"price_asked":null,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":797,"reported_calls_30d":5,"reported_payers_30d":3,"networks":["solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"messages":[{"content":"Say hello in one sentence.","role":"user"}]},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"enable_thinking":{"description":"For models with capabilities.reasoning. When true the reasoning is returned in message.reasoning_content, separate from content. Defaults to false.","type":"boolean"},"max_tokens":{"default":1024,"maximum":2048,"minimum":1,"type":"integer"},"messages":{"items":{"additionalProperties":false,"properties":{"content":{"description":"Text, or (user role, vision models only) an array of text and image_url parts.","oneOf":[{"type":"string"},{"items":{"oneOf":[{"additionalProperties":false,"properties":{"text":{"type":"string"},"type":{"const":"text"}},"required":["type","text"],"type":"object"},{"additionalProperties":false,"properties":{"image_url":{"additionalProperties":false,"properties":{"url":{"description":"https:// URL or data:image/(png|jpeg|webp|gif);base64 URI.","type":"string"}},"required":["url"],"type":"object"},"type":{"const":"image_url"}},"required":["type","image_url"],"type":"object"}]},"minItems":1,"type":"array"}]},"role":{"enum":["system","user","assistant"],"type":"string"}},"required":["role","content"],"type":"object"},"minItems":1,"type":"array"},"model":{"description":"Optional; must match the model in the selected route.","type":"string"},"reasoning_effort":{"description":"For reasoning-capable Workers AI models.","enum":["low","medium","high",null],"type":["string","null"]},"stream":{"default":false,"description":"Server-sent events in OpenAI chat.completion.chunk format. Only on models with capabilities.streaming.","type":"boolean"},"temperature":{"maximum":2,"minimum":0,"type":"number"}},"required":["messages"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"choices":{"items":{"properties":{"finish_reason":{"description":"\"length\" means max_tokens truncated the answer.","enum":["stop","length","content_filter"],"type":"string"},"message":{"properties":{"content":{"type":"string"},"reasoning_content":{"description":"Present when enable_thinking is true and the model produced reasoning.","type":"string"},"role":{"const":"assistant","type":"string"}},"required":["role","content"],"type":"object"}},"required":["message"],"type":"object"},"minItems":1,"type":"array"},"model":{"type":"string"},"object":{"const":"chat.completion","type":"string"}},"required":["object","model","choices"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":null,"price_match":null,"latency_ms":905,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":null,"price_match":null,"latency_ms":797,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":null,"price_match":null,"latency_ms":586,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":null,"price_match":null,"latency_ms":684,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":null,"price_match":null,"latency_ms":1072,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":null,"price_match":null,"latency_ms":940,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":null,"price_match":null,"latency_ms":592,"error":null},{"day":"2026-11-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":null,"price_match":null,"latency_ms":534,"error":null},{"day":"2026-11-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":null,"price_match":null,"latency_ms":546,"error":null},{"day":"2026-11-17","reachable":true,"status":402,"valid_402":true,"asked_usdc":null,"price_match":null,"latency_ms":721,"error":null},{"day":"2026-11-16","reachable":true,"status":402,"valid_402":true,"asked_usdc":null,"price_match":null,"latency_ms":800,"error":null},{"day":"2026-11-15","reachable":true,"status":402,"valid_402":true,"asked_usdc":null,"price_match":null,"latency_ms":733,"error":null},{"day":"2026-11-14","reachable":true,"status":402,"valid_402":true,"asked_usdc":null,"price_match":null,"latency_ms":546,"error":null},{"day":"2026-11-13","reachable":true,"status":402,"valid_402":true,"asked_usdc":null,"price_match":null,"latency_ms":606,"error":null},{"day":"2026-11-12","reachable":true,"status":402,"valid_402":true,"asked_usdc":null,"price_match":null,"latency_ms":659,"error":null},{"day":"2026-11-11","reachable":true,"status":402,"valid_402":true,"asked_usdc":null,"price_match":null,"latency_ms":624,"error":null},{"day":"2026-11-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":null,"price_match":null,"latency_ms":632,"error":null},{"day":"2026-11-09","reachable":true,"status":402,"valid_402":true,"asked_usdc":null,"price_match":null,"latency_ms":1184,"error":null},{"day":"2026-11-08","reachable":true,"status":402,"valid_402":true,"asked_usdc":null,"price_match":null,"latency_ms":849,"error":null},{"day":"2026-11-07","reachable":true,"status":402,"valid_402":true,"asked_usdc":null,"price_match":null,"latency_ms":589,"error":null}],"description_full":"Text completion using the model selected in the request body.","last_updated":"2026-11-24T10:57:43.751Z","schemes":["exact"]}