# GPT-5.5 API (reAPI)

## Overview

- What it does: GPT-5.5 — OpenAI's frontier reasoning model on reapi.ai. OpenAI-compatible /api/v1/chat/completions with 1M context, 128K max output, adjustable reasoning effort, and tiered long-context billing.
- Vendor: OpenAI
- Category: chat
- Wire model id: `gpt-5.5`
- Endpoint: `POST https://api.reapi.ai/v1/chat/completions` (Bearer auth; synchronous, OpenAI-compatible — no task polling)
- Landing page: https://reapi.ai/models/gpt-5-5
- API key: create one at https://reapi.ai/settings/apikeys and send it as `Authorization: Bearer YOUR_API_KEY`

## Group pricing: gpt-5.5

Current reAPI group prices from the same snapshot as the model page, in USD per 1 million tokens.
Default group: gpt.

| Group | Model ID | Token type | USD per 1M tokens |
| --- | --- | --- | ---: |
| gpt | gpt-5.5 | input | $3.75 |
| gpt | gpt-5.5 | output | $22.5 |
| gpt | gpt-5.5 | cacheRead | $0.375 |
| gpt | gpt-5.5 | inputLong | $7.5 |
| gpt | gpt-5.5 | outputLong | $33.75 |
| gpt | gpt-5.5 | cacheReadLong | $0.75 |
| gpt-0.4 | gpt-5.5:gpt-0.4 | input | $2 |
| gpt-0.4 | gpt-5.5:gpt-0.4 | output | $12 |
| gpt-0.4 | gpt-5.5:gpt-0.4 | cacheRead | $0.2 |
| gpt-0.4 | gpt-5.5:gpt-0.4 | inputLong | $4 |
| gpt-0.4 | gpt-5.5:gpt-0.4 | outputLong | $18 |
| gpt-0.4 | gpt-5.5:gpt-0.4 | cacheReadLong | $0.4 |

- gpt long-context rates apply when input tokens > 272000.
- gpt-0.4 long-context rates apply when input tokens > 272000.

## Pricing

The summary prices below use each model’s default group listed above.

Current reAPI prices from the same quote as the model page, in USD. 1 credit = $0.001. Successful delivered requests are settled from actual usage/cost; no per-request whole-credit rounding is applied to token prices. No task polling or automatic retry is required.
- reAPI price quote fetched at: 2026-11-28T05:25:34.378Z (UTC).
- Price refresh interval: 300 seconds. Fetch this URL again after the cache expires to obtain updated prices and discounts.

- tokens / input: $3.75 per 1M tokens
- tokens / output: $22.5 per 1M tokens
- longContext / inputLong: $7.5 per 1M tokens
- longContext / outputLong: $33.75 per 1M tokens
- tokens / cacheRead: $0.375 per 1M tokens
- longContext / cacheReadLong: $0.75 per 1M tokens

## Calling this model

Synchronous and OpenAI-compatible: point any OpenAI SDK at the base URL below and use the wire model id. Responses return in the same HTTP call — there is no task id and nothing to poll.

- Base URL: `https://api.reapi.ai/v1`

## Input schema

Kept 1:1 with the live request validator; constraints are enforced server-side too. All media inputs are public HTTP(S) URLs — base64 and `data:` URIs are rejected platform-wide.

- `messages` (string, required) — OpenAI-style chat message array
- `stream` (boolean, optional, default false) — Stream the response as server-sent events
- `max_completion_tokens` (string, optional, default "16000")
- `reasoning_effort` (string, optional, default "medium")
- `temperature` (string, optional, default "1")
- `top_p` (string, optional, default "1")
- `seed` (string, optional) — Fix the random seed for reproducible outputs

## Example request

```json
{
  "model": "gpt-5.5",
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ],
  "reasoning_effort": "medium",
  "stream": true
}
```

## Usage examples

### cURL

```bash
curl https://api.reapi.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.5",
    "messages": [
      { "role": "user", "content": "Hello" }
    ],
    "reasoning_effort": "medium",
    "stream": true
  }'
```

### Python (OpenAI SDK)

```python
from openai import OpenAI

client = OpenAI(base_url="https://api.reapi.ai/v1", api_key="YOUR_API_KEY")
response = client.chat.completions.create(
    model="gpt-5.5",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)
```

### JavaScript (OpenAI SDK)

```javascript
import OpenAI from 'openai';

const client = new OpenAI({ baseURL: 'https://api.reapi.ai/v1', apiKey: 'YOUR_API_KEY' });
const response = await client.chat.completions.create({
  model: 'gpt-5.5',
  messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(response.choices[0].message.content);
```

## Other agent-readable surfaces

This file covers one model. To find anything else:

- Full API reference (markdown, incl. task-type constraints and error semantics): https://reapi.ai/docs/gpt-5-5.md
- Platform index: https://reapi.ai/llms.txt
- Machine-readable API spec (OpenAPI): https://api.reapi.ai/openapi.json · agent skills index: https://reapi.ai/.well-known/agent-skills/index.json
- Authentication guide: https://reapi.ai/auth.md
- Full documentation and blog as one file: https://reapi.ai/llms-full.txt
- Any other model: `https://reapi.ai/models/<slug>/llms.txt` — every model page serves this same agent-readable form.
