API by router
Providers
GET
HTTPBearerheader
AuthorizationBearer <token>X-Api-Key?string|nullSuccessful Response
application/json- response
[index: integer]?curl -X GET 'https://example.com/v1/providers'Example Response
[ { "auth_type": "string", "base_url": "string", "docs_url": "string", "has_key": false, "id": "string", "key_env_hint": "string", "model_count": 0, "models": [ { "capabilities": [ "string" ], "context_window": 0, "id": "string", "input_cost_per_1m": 0, "is_default": true, "max_output_tokens": 0, "name": "string", "output_cost_per_1m": 0 } ], "name": "string", "rate_limit_note": "string", "supports_streaming": true }]GET
HTTPBearerheader
AuthorizationBearer <token>X-Api-Key?string|nullSuccessful Response
application/json- response
[index: integer]?curl -X GET 'https://example.com/v1/providers/keys'Example Response
[ { "created_at": "2019-08-24T14:15:22Z", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_valid": true, "key_suffix": "string", "label": "string", "last_validated_at": "2019-08-24T14:15:22Z", "provider_id": "string" }]POST
HTTPBearerheader
AuthorizationBearer <token>X-Api-Key?string|nullapplication/json- body
api_key*Api KeyLength
8 <= length <= 500label?LabelLength
length <= 100Default
"default"provider_id*Provider IdLength
1 <= length <= 50Successful Response
application/json- response
id*IdFormat
uuidkey_suffix*Key Suffixmessage*Messageprovider_id*Provider Idcurl -X POST 'https://example.com/v1/providers/keys' \ -H 'Content-Type: application/json' \ -d '{ "api_key": "stringst", "provider_id": "string"}'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "key_suffix": "string", "message": "string", "provider_id": "string"}DELETE
HTTPBearerheader
AuthorizationBearer <token>provider_id*Provider IdX-Api-Key?string|nullSuccessful Response
curl -X DELETE 'https://example.com/v1/providers/keys/string'Example Response
Empty
POST
HTTPBearerheader
AuthorizationBearer <token>X-Api-Key?string|nullapplication/json- body
api_key*Api KeyLength
8 <= length <= 500provider_id*Provider IdLength
1 <= length <= 50Successful Response
application/json- response
message*Messageprovider_id*Provider Idvalid*Validcurl -X POST 'https://example.com/v1/providers/validate' \ -H 'Content-Type: application/json' \ -d '{ "api_key": "stringst", "provider_id": "string"}'Example Response
{ "message": "string", "provider_id": "string", "valid": true}