Skip to main content
POST
Responses (GPT, Grok, DeepSeek, Kimi)
This endpoint speaks the OpenAI Responses API format: request body, response body, streaming events and error shapes are the same as OpenAI’s. Point the official OpenAI SDK at our base URL and use your ModelHunter.AI API key.

Models

GPT models also bill prompt-cache writes at the official cache-write rate. Output includes reasoning tokens.

Body Parameters

The body follows the OpenAI Responses API. The most common fields:
string
required
One of the models above.
string | object[]
required
A prompt string, or a list of input items (messages with text / image content, tool outputs).
string
System instructions.
integer
Maximum output tokens, including reasoning.
boolean
default:false
Stream the response as Responses server-sent events (response.output_text.delta, response.completed, …).
number
Sampling temperature (not supported by every reasoning model).
object[]
Function tool definitions, in OpenAI Responses format.
Other Responses fields (reasoning, text, tool_choice, top_p, metadata) are passed through unchanged.
deepseek-v4-1-flash and kimi-k3-1-pro currently support chat requests; tool calling for agents may not work yet.

Long requests and streaming

Use "stream": true for reasoning models and long outputs. Tokens arrive as they are generated, so long answers never sit idle on the connection. While a stream is waiting for the model (for example while it is thinking), we send : keepalive SSE comments every 15 seconds; SSE clients and the official SDKs ignore them.Non-streaming requests that take longer than 15 seconds are also kept alive: the response starts with 200 OK and leading whitespace (ignored by JSON parsers) until the result is ready. If such a request fails after that point, the error is returned in the response body with status 200 instead of an error status, so check the body for an error field.

Billing

Each call is billed per token at the official price. When the request starts, an upper bound on its cost is held from your balance (estimated input + output limit; at least 8,192 output tokens for Grok, DeepSeek and Kimi, whose reasoning is not capped by max_output_tokens). When it finishes you are charged for the tokens actually used and the rest is released. Failed requests are not charged.