Overview
Infron supports the OpenResponses API specification, an open standard for AI model interactions. OpenResponses provides a unified interface across providers with built-in support for streaming, tool calling, reasoning, and multi-modal inputs.
Base URL
The OpenResponses-compatible API is available at:
https://llm.onerouter.pro/v1
Authentication
The OpenAI-compatible API supports the same authentication methods:
API key: Use your Infron API key with the
Authorization: Bearer <token>header
Supported features
The OpenResponses API supports the following features:
Text generation - Generate text responses from prompts
Streaming - Stream tokens as they're generated
Image input - Send images for analysis
Tool calling - Define tools the model can call
Supported endpoints
The Infron supports the following OpenResponses endpoint:
POST /responses- Create chat response with support for streaming, attachments, tool calls, and structured outputs
Getting started
Here's a simple example to generate a text response:
Parameters
Required parameters
model(string): The model ID inprovider/modelformat (e.g.,openai/gpt-5.2,anthropic/claude-sonnet-4.5)input(array): Array of message objects containingtype,role, andcontentfields
Optional parameters
stream(boolean): Stream the response. Defaults tofalsetemperature(number): Controls randomness. Range: 0-2top_p(number): Nucleus sampling. Range: 0-1max_output_tokens(integer): Maximum tokens to generatetools(array): Tool definitions for function callingtool_choice(string): Tool selection mode:auto,required, ornonereasoning(object): Reasoning configuration witheffortlevelprovider(object): Provider routing and configuration options
Error handling
The API returns standard HTTP status codes and error responses:
Common error codes
400: Bad Request (invalid or missing params, CORS)
401: Invalid credentials (OAuth session expired, disabled/invalid API key)
402: Your account or API key has insufficient credits. Add more credits and retry the request.
403: Your chosen model requires moderation and your input was flagged
408: Your request timed out
429: You are being rate limited
502: Your chosen model is down or we received an invalid response from it
503: There is no available model provider that meets your routing requirements
Error response format
Last updated