Your API key and first call
Lesson 8.1 of 45 Video 1 min read Updated Oct 14, 2026
Where your API key is, how to authenticate and how to start a generation and check its status from code.
8.1Your API key and first call
Video coming soon
Everything you do on the web can be done from code with a single API key. Every model is an endpoint with the same inputs as its form.
- Copy your API key from the API Key card in Account. Treat it like a password: it spends your credits.
- Send it with every request in the
Authorization: Bearer YOUR_API_KEYheader. - Start a generation with
POST /api/v1/model/{owner}/{name}. Theowner/nameis the one on the model page. - Check its status with
GET /api/v1/prediction/{prediction_id}until it iscompleted,failedorcanceled.
All the details are in the API documentation.
Was this helpful?