> ## Documentation Index
> Fetch the complete documentation index at: https://docs.heyaskr.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# GPT

> OpenAI's GPT: a strong all-rounder for chat and tools.

GPT is OpenAI's flagship family, a dependable all-rounder that's strong across
chat, reasoning, tool use and structured output. If you're moving existing OpenAI
code to Askr, this is the closest match.

## Best for

* General-purpose chat and assistants.
* Function/tool calling and structured JSON output.
* Drop-in migration from existing OpenAI integrations.

|                      |                                 |
| -------------------- | ------------------------------- |
| **Modality**         | Chat & code (text in, text out) |
| **Example model id** | `gpt-5.5`                       |
| **Endpoint**         | `POST /chat/completions`        |

## Example

<CodeGroup>
  ```bash cURL theme={null}
  curl https://api.heyaskr.ai/chat/completions \
    -H "Authorization: Bearer ASKR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "model": "gpt-5.5",
      "messages": [
        {"role": "user", "content": "Explain quantum computing in one line."}
      ]
    }'
  ```

  ```python Python theme={null}
  from openai import OpenAI
  client = OpenAI(base_url="https://api.heyaskr.ai", api_key="ASKR_API_KEY")

  resp = client.chat.completions.create(
      model="gpt-5.5",
      messages=[
          {"role": "user", "content": "Explain quantum computing in one line."},
      ],
  )
  print(resp.choices[0].message.content)
  ```
</CodeGroup>

## Pricing

Priced per token, input and output separately. As a rough guide, expect around
**\$2.50 per 1M input tokens** and **\$10 per 1M output tokens** for the flagship
model. Smaller GPT models cost less.

<div className="askr-img-placeholder">
  <span><strong>Image</strong><br />GPT on Askr: model card and pricing</span>
</div>

<Note>
  The model id and prices above are examples. Confirm the exact id and current
  price against the live [`/v1/models`](/api-reference/list-models) list before you
  rely on them.
</Note>
