API Reference

Balance

View Markdown

Manage credits and inspect task charges.

Add credits

Visit Credits to view your balance and add credits. TokLab uses one-time credit purchases; credits do not expire.

Rates and usage

Current model rates are available on the models page. GPT Image 2 is billed by token usage. Prompt length, reference images, quality, dimensions, and image count can affect the final charge.

The Playground estimate is an estimate, not a fixed quote. View final charges in your account usage history. Public task responses do not include monetary fields.

Insufficient balance

Error code 30001 means there are not enough credits to run the request. Add credits before submitting again.

Failed tasks are not charged. A connection timeout alone does not establish that a task failed; query the existing task ID to check its final state.

View your history

See LLM logs for charges and Task logs for task history.