Skip to main content

1. Create an API key

Sign in to the console, wait for your invitation to be activated, and create an API key. Copy it when it is shown. Keep it on your server.
Check which models are available:
An empty models list means prediction is not ready. If simulated is true, answers are samples for testing your integration.

2. Ask a question

Generate an operation key once for this prediction. Keep it for retries.

3. Use the answer

Read answers[0].probability_true for the score from 0 to 1. The response also contains request_id, the selected model, and usage with the actual token count and charge. USD amounts are decimal strings. A 200 response means the answer and charge are saved. If the connection times out, rerun the same request with the same operation key to recover its result without a second charge. See retries and errors.

Next steps

Explore the API reference for request fields and curl, Python, and JavaScript examples. Read question types to add choice and score questions to your request. Generate a new operation key whenever you change the input. The reference includes an interactive playground. It sends requests through Mintlify’s proxy to the staging API, using the key you provide. Successful predictions consume test credit just like requests from your own code.