# Limits and protocol compatibility

Check model, request, and conversation-history limits before sending a request.

## Read the selected model's limits.

Get context, maximum output, and prompt-character limits for your model from `GET /v1/models`. Character limits cap input size; they are not token reservations.

### Inspect configured model metadata

```shell
curl --fail --silent --show-error https://beta.blaschkelabs.com/v1/models -H "Authorization: Bearer $BLASCHKE_API_KEY"
```

The API defaults to 512 output tokens. Each model enforces its own cap, currently up to 16,384 tokens. Context is shared by input and output.

## Strict request boundaries.

Unknown fields and oversized history are rejected rather than silently stripped or truncated.

**Envelope**

| Field | Limit |
| --- | --- |
| Messages | 100 |
| Tool definitions | 64 |
| Calls per assistant message | 8 |
| Function description | 16,384 characters |
| JSON body | 3,000,000 bytes |
| Stop sequences | 4 |
| Roles | system, user, assistant, tool |

## Accepted top-level fields.

Gateway acceptance does not guarantee every worker supports an option.

**Parameters**

| Field | Accepted form |
| --- | --- |
| model | Required model ID |
| messages | 1–100 messages |
| stream | Boolean; default false |
| stream_options | `include_usage: boolean` |
| max_tokens | Integer, 1–8192; default 512 |
| temperature / top_p | 0–2 / 0–1 |
| stop | String or up to 4 strings |
| seed | Integer |
| tools | 1–64 function definitions |
| tool_choice | auto, none, required, or a named function |
| chat_template_kwargs | Model-specific object |

## Not implemented.

Image input is model-specific: RANA accepts up to four PNG/JPEG data images per request, with byte and dimension limits from model discovery. Remote image URLs, image output, OpenAI Responses, Anthropic Messages, caching APIs, hosted file storage, and server-side tool execution are not supported. The request schema rejects `logprobs` and `parallel_tool_calls`.

## Related guides

- [Model metadata](https://beta.blaschkelabs.com/docs/models): Inspect available model profiles.

Source: https://beta.blaschkelabs.com/docs/limits

Markdown: https://beta.blaschkelabs.com/docs/md/limits.md
