{"success":true,"data":{"id":"svc_chat_01","slug":"chat","name":"Chat Completions (Mistral Small 4, OpenAI format)","description":"OpenAI-compatible chat completions from Mistral Small 4 (Mistral AI), paid per call: send messages, get choices with the assistant message, tool calls and token usage. Flat $0.003 per call for up to 11,000 characters of input (messages, tools and schema as JSON) and up to 800 output tokens. Supports system prompts, JSON mode, JSON schema output and function calling. Also at POST https://agentsvc.io/v1/chat/completions for the OpenAI SDK (model mistral-small-latest). Fast and cheap for agent steps, classification, rewriting, extraction and tool use. EU model: Mistral AI (France), GDPR processor agreement, API data is not used for training. Failed calls are not charged. Use is subject to the agentsvc.io terms and the Mistral AI Usage Policy.","category":"text","endpoint":"https://agentsvc.io/api/v1/proxy/chat","price_usdc":0.003,"latency_p99_ms":30000,"input_schema":{"type":"object","properties":{"messages":{"type":"array","description":"Conversation in OpenAI format: [{\"role\": \"system\"|\"user\"|\"assistant\"|\"tool\", \"content\": \"...\"}]. Text only. Shortcut instead: prompt (+ system)","items":{"type":"object","properties":{"role":{"type":"string","enum":["system","user","assistant","tool"]},"content":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array"}},"required":["role"]}},"prompt":{"type":"string","description":"Shortcut for a single user message (use instead of messages)"},"system":{"type":"string","description":"System prompt, only together with prompt"},"max_tokens":{"type":"integer","description":"Max output tokens, capped at 800 (default 800)"},"temperature":{"type":"number","description":"0 to 1.5"},"top_p":{"type":"number"},"seed":{"type":"integer"},"stop":{"type":["string","array"]},"response_format":{"type":"object","description":"{\"type\": \"json_object\"} or {\"type\": \"json_schema\", \"json_schema\": {...}}"},"tools":{"type":"array","description":"Function tools in OpenAI format, max 32"},"tool_choice":{"type":["string","object"],"description":"auto, none, required or a named function"}}},"output_schema":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string"},"created":{"type":"integer"},"model":{"type":"string"},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"finish_reason":{"type":"string"},"message":{"type":"object","properties":{"role":{"type":"string"},"tool_calls":{},"content":{"type":"string"}}}}}},"usage":{"type":"object","properties":{"prompt_tokens":{"type":"integer"},"completion_tokens":{"type":"integer"},"total_tokens":{"type":"integer"}}},"provider":{"type":"string"},"limits":{"type":"object","properties":{"max_input_chars":{"type":"integer"},"max_tokens":{"type":"integer"}}},"notice":{"type":"string"}},"required":["choices","usage","model"],"example":{"id":"c4f6d32a98f54897bdd713c0f1a6cc09","object":"chat.completion","created":1796396198,"model":"mistral-small-2603","choices":[{"index":0,"finish_reason":"stop","message":{"role":"assistant","tool_calls":null,"content":"The capital of France is Paris."}}],"usage":{"prompt_tokens":25,"completion_tokens":8,"total_tokens":33},"provider":"Mistral AI","limits":{"max_input_chars":11000,"max_tokens":800},"notice":"AI-generated by a Mistral AI model via agentsvc.io. Use is subject to https://agentsvc.io/terms#ai-chat and the Mistral AI Usage Policy (https://legal.mistral.ai/terms/usage-policy). Do not present it as written by a human."}},"is_active":true,"provider":"agentsvc.io","tags":["llm","chat","chat-completions","openai-compatible","mistral","ai","inference","function-calling","eu","gdpr"],"method":"POST","example_input":{"messages":[{"role":"user","content":"What is the capital of France? One sentence."}],"max_tokens":50},"price_atomic":"3000","price_display":"$0.003 USDC","try_url":"https://agentsvc.io/api/v1/try/chat","try_limit_per_day":3,"info_url":"https://agentsvc.io/api/v1/services/chat","page_url":"https://agentsvc.io/services/chat","curl_example":"curl -X POST https://agentsvc.io/api/v1/proxy/chat -H \"Content-Type: application/json\" -d '{\"messages\":[{\"role\":\"user\",\"content\":\"What is the capital of France? One sentence.\"}],\"max_tokens\":50}'","status":{"ok":true,"latency_ms":506,"checked_at":"2026-12-04T15:00:08.739Z"}},"payment":{"protocol":"x402","x402_versions_accepted":[1,2],"scheme":"exact","network":"eip155:8453","network_v1":"base","chain_id":8453,"asset":"USDC","asset_contract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","asset_decimals":6,"eip712_domain":{"name":"USD Coin","version":"2","chainId":8453,"verifyingContract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},"pay_to":"0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27","facilitator":"https://api.cdp.coinbase.com/platform/v2/x402","request_header_v2":"PAYMENT-SIGNATURE","request_header_v1":"X-PAYMENT","requirements_v2":"base64 JSON in the PAYMENT-REQUIRED response header of the 402","requirements_v1":"JSON body of the 402 (accepts[0])","receipt_header":"PAYMENT-RESPONSE (and X-PAYMENT-RESPONSE): base64 JSON with transaction hash","accounts_required":false,"api_keys_required":false,"settlement":"per call, on-chain, after the service succeeded. Failed calls are never charged.","also_accepted":[{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","network_v1":"solana","asset":"USDC","asset_mint":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","pay_to":"5JzPS5qpEwUM1vTC9GG7uqvwJdHzbEwfoPHf2Ki977tg","note":"Solana option is accepts[1] in the 402. The facilitator pays the transaction fee (extra.feePayer); the payer needs only USDC, no SOL."}]},"links":{"catalog":"https://agentsvc.io/api/v1/services","payment_requirements":"https://agentsvc.io/api/v1/payment-requirements","credits":"https://agentsvc.io/api/v1/credits","start_credit":"https://agentsvc.io/start","openapi":"https://agentsvc.io/openapi.json","llms_txt":"https://agentsvc.io/llms.txt","llms_full_txt":"https://agentsvc.io/llms-full.txt","agents_md":"https://agentsvc.io/AGENTS.md","skill_md":"https://agentsvc.io/SKILL.md","status":"https://agentsvc.io/api/v1/status","docs":"https://agentsvc.io/docs","mcp_server":"https://agentsvc.io/mcp-server.mjs","discovery":"https://agentsvc.io/.well-known/x402","agent_card":"https://agentsvc.io/.well-known/agent-card.json"}}