Ask an AI model
chatSend prompts to any of 120+ AI models, including OpenAI, Anthropic, Google, and more, through a single API. Billed per token from your credit balance.
Instructions
Send a prompt to any of the 120+ models on ApexApi (OpenAI, Anthropic, Google, DeepSeek, Qwen, Mistral…). Use list_models to discover model slugs. Billed per token from the credit balance.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>",
"prompt": "<prompt>"
},
"name": "chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model slug in maker/model form, e.g. openai/gpt-4o or anthropic/claude-fable-5 | |
| prompt | Yes | The user prompt | |
| system | No | Optional system prompt | |
| max_tokens | No | ||
| temperature | No |