Model Ledger
All models

Platform Mock Gateway

Mock Code Model

mock-code-model

Local mock Responses target.

Callable in previewcode

Input / million tokens

$1.00

Output / million tokens

$4.00

Cached input / million tokens

$0.25

Billing notes

  • Currency: USD. Platform service fee: 10% of confirmed usage.
  • Supplier earns the remaining 90% after verified usage settles.
  • Context window: 128K. Credits are a liability until consumed.
  • Scope this model onto a calling key before sending traffic to POST /v1/responses.

Call examples

Replace the bearer token with a platform key that includes this model in its scope. Always send an Idempotency-Key.

curl https://api.example.com/v1/responses \
  -H "Authorization: Bearer tas_live_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"model":"mock-code-model","input":"Explain how token reservations protect concurrent budgets.","max_output_tokens":256,"stream":false}'

# Streaming
curl -N https://api.example.com/v1/responses \
  -H "Authorization: Bearer tas_live_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -H "Accept: text/event-stream" \
  -d '{"model":"mock-code-model","input":"Explain how token reservations protect concurrent budgets.","max_output_tokens":256,"stream":true}'