Skip to content

Ask AI

I answer questions about Radeon Cloud from these docs and link to the pages I used.

Answers are generated from the docs by a model on Token Factory and can be wrong; the docs are authoritative. Don't enter API keys or other secrets here.

Inkling-2-Mini

POST /v1/chat/completions model: Inkling-2-Mini

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.

Parameters26.4B total, 3.4B activated per token
Context length131,072 tokens
Max output32,768 tokens
Input modalitiestext + images
Streaming✅
Tool calling✅
JSON output✅ json_object
Thinking✅ — on by default; only none turns it off
Available since2026-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)

In pts per million tokens. See Usage and quota.

InputCache readOutput
0.0350.00070.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.

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 429 with Retry-After: 30 and code large_prompt_concurrency_rate_limit_exceeded. Shorter requests are not affected.

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.

system messages can go anywhere, and more than one is allowed. developer is accepted as an alias for system.

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).

FormatsJPEG, PNG, GIF, BMP, WebP, TIFF, AVIF
Per imageup to 20 MiB
Per requestup 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_tokens and 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.

curl. Encode a local file and put it in a data URL:

Terminal window
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, os
from 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 requests
b64 = 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, …).