Skip to content
GameronAPI
Documentation

Reference

API examples

Copy a minimal Messages, Responses, or model-list request.

Set your API key

The examples use curl in a macOS/Linux shell. On Windows, use curl.exe with PowerShell quoting, or the PowerShell example below. Every generation request consumes tokens from your plan.

$env:GAMERON_API_KEY = "YOUR_GAMERON_API_KEY"

List authorized models

curl https://api.gameron.me/v1/models \
  -H "Authorization: Bearer $GAMERON_API_KEY"

Claude Messages

Use the exact Claude ID enabled on your key. Client-side tools execute in your app; return each tool result with its matching tool-call ID.

curl · macOS / Linux
curl https://api.gameron.me/v1/messages \
  -H "Authorization: Bearer $GAMERON_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{"model":"claude-opus-5-5","max_tokens":128,"messages":[{"role":"user","content":"Reply with a short hello."}]}'

GPT Responses

For a streaming client, set stream to true and read the response as server-sent events. Preserve tool-call IDs and conversation history between turns. If a stream breaks after output or a tool call, inspect its state before retrying.

curl · macOS / Linux
curl https://api.gameron.me/v1/responses \
  -H "Authorization: Bearer $GAMERON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-6.1-sol","input":"Reply with a short hello.","max_output_tokens":128}'