Inkling-2-Mini
Inkling-2-Mini
About the model
Section titled “About the model”TF’s vision model: charts, invoices, screenshots and photos, fast and low-cost.
Inkling-2-Mini is an open-weight model from Thinking Machines, served here on AMD Radeon GPUs. It is a mixture-of-experts model that takes text and images and thinks before it answers unless you turn thinking off.
| Parameters | 26.4B total, 3.4B activated per token |
On Radeon Cloud
Section titled “On Radeon Cloud”At a glance
Section titled “At a glance”| Context length | 131,072 tokens |
| Max output | 32,768 tokens |
| Input modalities | text + images |
| Streaming | ✅ |
| Tool calling | ✅ |
| JSON output | ✅ json_object |
| Thinking | ✅ — on by default; only none turns it off |
| Available since | 2026-11-30 |
A prompt plus max_tokens over 131,072 returns 400 (context_length_exceeded). A max_tokens
above 32,768 returns 400:
The requested max_tokens (32769) exceeds the maximum output tokens allowed for model Inkling-2-Mini (32768)Usage rates
Section titled “Usage rates”In pts per million tokens. See Usage and quota.
| Input | Cache read | Output |
|---|---|---|
| 0.035 | 0.0007 | 0.07 |
Only continuations of the same conversation are cached. A system prompt shared across different conversations is not cached and is billed at the full input rate.
Limits
Section titled “Limits”The usual rate limits apply, including 8 concurrent requests per API key. This model adds one rule for long prompts:
- At most one request of 64K (65,536) prompt tokens or more (estimated input) runs at a time per
API key and per account. Only text tokens count toward this threshold; images don’t trigger it.
A second one while the first is still running returns
429withRetry-After: 30and codelarge_prompt_concurrency_rate_limit_exceeded. Shorter requests are not affected.
Thinking
Section titled “Thinking”Omitting the thinking parameter does not turn thinking off. The thinking pass draws on the same
max_tokens budget as the answer; if content comes back empty, raise max_tokens.
reasoning_effort accepts none minimal low medium high xhigh max; any other value
returns 400.
Thinking text arrives in choices[0].message.reasoning. The token count is in
usage.completion_tokens_details.reasoning_tokens; there is no top-level usage.reasoning_tokens.
Thinking tokens are counted in completion_tokens and billed.
messages
Section titled “messages”system messages can go anywhere, and more than one is allowed. developer is accepted as an alias
for system.
Image input
Section titled “Image input”Supported: put an image_url content part in the content array.
Send images as base64 data URLs in image_url.url, e.g. data:image/png;base64,…. http(s) image
URLs, file paths, and audio or file content parts are not supported and return 400
(images must be sent as base64 data: URLs for an http(s) URL).
| Formats | JPEG, PNG, GIF, BMP, WebP, TIFF, AVIF |
| Per image | up to 20 MiB |
| Per request | up to 8 images, 40 MiB of images in total |
- Images are scaled down to at most 0.8 megapixels. Each costs up to about 250 input tokens; small
images cost less. Image tokens are counted in
usage.prompt_tokensand billed at the input rate. - Images count toward the 131,072-token context.
- Requests that contain images get no prompt-cache discount or speed-up. Once a conversation includes an image, every later turn is processed and billed at the full input price. For long agent sessions, avoid re-sending screenshots in the history where you can.
Send an image (base64)
Section titled “Send an image (base64)”curl. Encode a local file and put it in a data URL:
IMG=$(base64 -w0 chart.png) # macOS: IMG=$(base64 -i chart.png | tr -d '\n')curl https://developer.amd.com.cn/radeon/api/v1/chat/completions \ -H "Authorization: Bearer $RADEON_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "Inkling-2-Mini", "messages": [{"role": "user", "content": [ {"type": "text", "text": "What does this chart show?"}, {"type": "image_url", "image_url": {"url": "data:image/png;base64,'"$IMG"'"}} ]}] }'For large images the command line can get too long; write the JSON body to a file and send it with
-d @body.json.
Python (openai SDK). Read the file, encode it, and send it as a data URL:
import base64, osfrom openai import OpenAI
client = OpenAI(base_url="https://developer.amd.com.cn/radeon/api/v1", api_key=os.environ["RADEON_API_KEY"])
with open("invoice.jpg", "rb") as f: b64 = base64.b64encode(f.read()).decode()
resp = client.chat.completions.create( model="Inkling-2-Mini", messages=[{"role": "user", "content": [ {"type": "text", "text": "List the line items and the total."}, {"type": "image_url", "image_url": {"url": f"data:image/jpeg;base64,{b64}"}}, ]}],)print(resp.choices[0].message.content)If your image is at a web address, download it yourself and encode it; the API doesn’t fetch URLs:
import requestsb64 = base64.b64encode(requests.get("https://example.com/photo.png", timeout=30).content).decode()Use the matching type in the data URL (image/png, image/jpeg, image/webp, …).