GPT 5.4 Nano

Lowest-cost GPT tier for short utility prompts, classification, routing, and lightweight app responses.

Text

5.4 Nano technical docs

Endpoint, auth header, parameters, prices, and tested request examples for GPT 5.4 Nano.

Endpoint

Endpoint and pricing

POST /responses Endpoint https://api.imole.app/v1 Base URL 1 API cauris 1 Agent cauris
Headers

Request headers

Authorization required

Bearer Imole API key.

Content-Type required

Use application/json for JSON requests.

Parameters

Request parameters

model required

Text model id.

input required

String input or Responses input array.

messages

Legacy chat-style array. The router converts it to Responses input.

instructions

System or developer instruction inserted ahead of the user task.

max_output_tokens

Optional provider output control. Imole does not require it or impose its own token ceiling.

reasoning

Optional reasoning controls when supported, including effort and Pro mode.

temperature

Sampling randomness when the model supports it.

top_p

Nucleus sampling control.

stream

Return server-sent events when supported.

true, false
tools

Tool definitions for tool-enabled Responses calls.

tool_choice

Tool selection policy.

auto, none, required
parallel_tool_calls

Allow multiple tool calls in one turn.

true, false
text.format

Structured text format controls for Responses.

response_format

Compatibility field for JSON-style output requests.

metadata

Optional request metadata.

Examples

Tested request examples

String input
curl -X POST "https://api.imole.app/v1/responses" \
  -H "Authorization: Bearer $IMOLE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-5.4-nano",
  "input": "Write a concise product update for the new Imole API release.",
  "instructions": "Be direct and practical.",
  "max_output_tokens": 180
}'
Responses input array
curl -X POST "https://api.imole.app/v1/responses" \
  -H "Authorization: Bearer $IMOLE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-5.4-nano",
  "input": [
    {
      "role": "user",
      "content": [
        {
          "type": "input_text",
          "text": "List three launch checklist items for a new API route."
        }
      ]
    }
  ],
  "max_output_tokens": 120
}'
Legacy messages array
curl -X POST "https://api.imole.app/v1/responses" \
  -H "Authorization: Bearer $IMOLE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-5.4-nano",
  "messages": [
    {
      "role": "system",
      "content": "Respond in short bullet points."
    },
    {
      "role": "user",
      "content": "Summarize the benefits of idempotency keys in two bullets."
    }
  ],
  "max_output_tokens": 120
}'