curl --request POST \
--url https://api.fireworks.ai/v1/accounts/{account_id}/routers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"displayName": "<string>",
"deployments": [
"<string>"
],
"model": "<string>",
"weightedRandom": {},
"evenLoad": {},
"public": true
}
'{
"name": "<string>",
"displayName": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"state": "STATE_UNSPECIFIED",
"status": {
"code": "OK",
"message": "<string>"
},
"deployments": [
"<string>"
],
"model": "<string>",
"weightedRandom": {},
"evenLoad": {},
"aliases": [
"<string>"
],
"autoGenerated": true,
"public": true
}curl --request POST \
--url https://api.fireworks.ai/v1/accounts/{account_id}/routers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"displayName": "<string>",
"deployments": [
"<string>"
],
"model": "<string>",
"weightedRandom": {},
"evenLoad": {},
"public": true
}
'{
"name": "<string>",
"displayName": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"state": "STATE_UNSPECIFIED",
"status": {
"code": "OK",
"message": "<string>"
},
"deployments": [
"<string>"
],
"model": "<string>",
"weightedRandom": {},
"evenLoad": {},
"aliases": [
"<string>"
],
"autoGenerated": true,
"public": true
}Documentation Index
Fetch the complete documentation index at: https://docs.fireworks.ai/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication using your Fireworks API key. Format: Bearer <API_KEY>
The Account Id
ID of the router.
The deployment names to be covered by the router.
The model name to route requests to. model is only applicable to single-region deployments. For multi-region deployments, model must be empty.
Use replica count as weight.
Dynamically adjust traffic allocation to balance the load per replica across the deployments as much as possible.
True if the router is public (any account can query the underlying workload), false if the router is private (only the account that owns the router can query the underlying workload).
A successful response.
The state of the router.
STATE_UNSPECIFIED, CREATING, READY, UPDATING, DELETING Show child attributes
The deployment names to be covered by the router.
The model name to route requests to. model is only applicable to single-region deployments. For multi-region deployments, model must be empty.
Use replica count as weight.
Dynamically adjust traffic allocation to balance the load per replica across the deployments as much as possible.
auto_generated indicates this router was generated by the system for a deployment. Auto-generated routers cannot be updated or deleted by the user.
True if the router is public (any account can query the underlying workload), false if the router is private (only the account that owns the router can query the underlying workload).
Was this page helpful?