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

# Chat Completions API

> Use the OpenAI Chat Completions-shaped endpoint at /v1/chat/completions.

## Endpoint

```bash theme={null}
POST https://api.asterwise.dev/v1/chat/completions
Authorization: Bearer $ASTER_API_KEY
Content-Type: application/json
```

## Minimal request

```bash theme={null}
curl https://api.asterwise.dev/v1/chat/completions \
  -H "Authorization: Bearer $ASTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"aster-code","messages":[{"role":"user","content":"Find the likely bug."}]}'
```

## Capabilities

This route supports the delivered text, streaming, tool, continuation, and static Code image scope. Code image input is qualified only for PNG, JPEG, GIF, BMP, TIFF, and PPM within the published request limits.

<Note>
  Animation, maximum-size provider rendering, every client extension, and sustained workload behavior are outside the current qualification evidence.
</Note>

## Next steps

* [Handle errors and retries](/errors-fallback)
* [Check supported capabilities](/products-capabilities)
