Get started
Authentication
Every request carries a workspace API key as a Bearer token.
Send your key in the Authorization header of every request. Keys start with fp_live_.
GET /v1/models HTTP/1.1
Host: frameport.ai
Authorization: Bearer fp_live_...curl https://frameport.ai/v1/models \
-H "Authorization: Bearer $FRAMEPORT_API_KEY"Keys belong to a workspace
- A key spends the balance of the workspace it was created in. Generations made with it show in that workspace, with the key's name.
- A workspace holds up to 20 active keys. Use one per app or environment, so one can be revoked alone.
- Owners, admins and developers create and revoke keys; the billing role cannot.
- The secret is shown once, when the key is created. We keep a hash, never the key.
No key needed
GET /v1/models, GET /v1/models/{id} and GET /v1/status answer without a key. A key sent to them is still checked: a wrong one answers 401, so GET /v1/models with your key tells you it works.
Keep keys on the server
A key spends money: never ship it in a browser or a mobile app. Call the API from your server and pass the results on. If a key leaks, revoke it under API keys: it stops working at once.
Errors
A missing, malformed or revoked key answers 401 with the code unauthorized.
{
"error": {
"code": "unauthorized",
"message": "Missing, invalid or revoked API key. Send \"Authorization: Bearer <key>\".",
"request_id": "req_7Xc2LmQ9vT4nRk8Ws1Bd"
}
}