Agent Integrations

Create a text completion directly against OpenRouter

Proxies to OpenRouter's /completions. Same forwarding and price-cap rules as the chat endpoint. Set stream: true for an SSE stream.

post/agent-integrations/openrouter/completions

Request

  • Base URL: https://api.tinyhumans.ai
  • URL: https://api.tinyhumans.ai/agent-integrations/openrouter/completions
  • Auth: HTTP bearer

Request body

modelstring required
streamboolean
temperaturenumber
max_tokensinteger

Defaults to 4096.

thread_idstring

Example request

{
  "model": "mistralai/mistral-7b-instruct"
}

Response

Text completion response in OpenAI format

Changes

No recorded changes to this operation across all 1 revision of this API.