API structure has changed
First update of api documentation
4 structure changes including:
2 Additions
2 Modifications
Modified
2
Breaking
POST /v1/chat/completions
- Response
-
200 response Modified
-
application/json content type Modified
-
choices property Modified
-
finish_reason property Modified
-
Full types went from
string | null
tostring
Breaking - Property is no longer required
-
Full types went from
-
seed property Removed
-
Removing a resource is always breaking unless it was deprecated before Breaking
-
Removing a resource is always breaking unless it was deprecated before
-
finish_reason property Modified
-
usage property Modified
- prompt_cache_hit_tokens, prompt_cache_miss_tokens properties Added
-
choices property Modified
-
application/json content type Modified
-
400 response Modified
-
application/json content type Modified
-
error property Modified
-
Full types went from
string
toobject
Breaking -
Property is now required Breaking
- message, type, param, code properties Added
-
Full types went from
-
statusCode, message properties Removed
-
Removing a resource is always breaking unless it was deprecated before Breaking
-
Removing a resource is always breaking unless it was deprecated before
-
error property Modified
-
application/json content type Modified
- 401, 429 responses Added
- Authentication
- Api key auth authentication method Added
POST /v1/images/generations
- Response
-
400 response Modified
-
application/json content type Modified
-
error property Modified
-
Full types went from
string
toobject
Breaking -
Property is now required Breaking
- message, type, param, code properties Added
-
Full types went from
-
statusCode, message properties Removed
-
Removing a resource is always breaking unless it was deprecated before Breaking
-
Removing a resource is always breaking unless it was deprecated before
-
error property Modified
-
application/json content type Modified
- 401, 429 responses Added
- Authentication
- Api key auth authentication method Added
Added
2
GET /health
GET /v1/models