Ellipsis APIReference
Platform
Platform endpoints of the Ellipsis REST API.
Unauthenticated; the device code identifies the flow.
curl -X POST "https://api.ellipsis.dev/auth/cli/poll" \
-H "Authorization: Bearer $ELLIPSIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"device_code":"..."}'{
"access_token": "string",
"status": "string"
}{
"properties": {
"device_code": {
"type": "string"
}
},
"required": [
"device_code"
],
"type": "object"
}{
"properties": {
"access_token": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"status": {
"type": "string"
}
},
"required": [
"status"
],
"type": "object"
}Request
device_codestringrequired
The device code returned by POST /auth/cli/start.
Responses
Unauthenticated: the CLI has no credential yet — that's what it's obtaining. The human authorizes out-of-band in the dashboard.
curl -X POST "https://api.ellipsis.dev/auth/cli/start" \
-H "Authorization: Bearer $ELLIPSIS_API_KEY"{
"device_code": "string",
"expires_in": 0,
"interval": 0,
"user_code": "string",
"verification_uri": "string",
"verification_uri_complete": "string"
}No request body.
{
"properties": {
"device_code": {
"type": "string"
},
"expires_in": {
"type": "integer"
},
"interval": {
"type": "integer"
},
"user_code": {
"type": "string"
},
"verification_uri": {
"type": "string"
},
"verification_uri_complete": {
"type": "string"
}
},
"required": [
"device_code",
"user_code",
"verification_uri",
"verification_uri_complete",
"interval",
"expires_in"
],
"type": "object"
}Responses
curl "https://api.ellipsis.dev/budget" \
-H "Authorization: Bearer $ELLIPSIS_API_KEY"{
"budget_usd": 0,
"fraction_used": 0,
"pause_at_limit": false,
"period": "string",
"remaining_usd": 0,
"spent_usd": 0,
"window": {
"end": "string",
"start": "string"
}
}No request body.
{
"properties": {
"budget_usd": {
"type": "number"
},
"fraction_used": {
"type": "number"
},
"pause_at_limit": {
"type": "boolean"
},
"period": {
"type": "string"
},
"remaining_usd": {
"type": "number"
},
"spent_usd": {
"type": "number"
},
"window": {
"properties": {
"end": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"start": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"start",
"end"
],
"type": "object"
}
},
"required": [
"period",
"window",
"budget_usd",
"spent_usd",
"remaining_usd",
"fraction_used",
"pause_at_limit"
],
"type": "object"
}Responses
curl "https://api.ellipsis.dev/me" \
-H "Authorization: Bearer $ELLIPSIS_API_KEY"{
"api_key_id": "string",
"customer_id": "string",
"customer_login": "string",
"gh_user": {
"avatar_url": "string",
"bio": "string",
"blog": "string",
"business_plus": false,
"collaborators": 0,
"company": "string",
"created_at": "2026-01-01T00:00:00Z",
"disk_usage": 0,
"email": "string",
"events_url": "string",
"followers": 0,
"followers_url": "string",
"following": 0,
"following_url": "string",
"gists_url": "string",
"gravatar_id": "string",
"hireable": false,
"html_url": "string",
"id": 0,
"ldap_dn": "string",
"location": "string",
"login": "string",
"name": "string",
"node_id": "string",
"notification_email": "string",
"organizations_url": "string",
"owned_private_repos": 0,
"plan": {
"collaborators": 0,
"name": "string",
"private_repos": 0,
"space": 0
},
"private_gists": 0,
"public_gists": 0,
"public_repos": 0,
"received_events_url": "string",
"repos_url": "string",
"site_admin": false,
"starred_url": "string",
"subscriptions_url": "string",
"total_private_repos": 0,
"twitter_username": "string",
"two_factor_authentication": false,
"type": "User",
"updated_at": "2026-01-01T00:00:00Z",
"url": "string",
"user_view_type": "string"
},
"sandbox_id": "string",
"user_id": "string"
}No request body.
{
"properties": {
"api_key_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"customer_id": {
"type": "string"
},
"customer_login": {
"type": "string"
},
"gh_user": {
"anyOf": [
{
"properties": {
"avatar_url": {
"type": "string"
},
"bio": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"blog": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"business_plus": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"collaborators": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"company": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"created_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"disk_usage": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"email": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"events_url": {
"type": "string"
},
"followers": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"followers_url": {
"type": "string"
},
"following": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"following_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"gravatar_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"hireable": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"html_url": {
"type": "string"
},
"id": {
"type": "integer"
},
"ldap_dn": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"location": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"login": {
"type": "string"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"node_id": {
"type": "string"
},
"notification_email": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"organizations_url": {
"type": "string"
},
"owned_private_repos": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"plan": {
"anyOf": [
{
"properties": {
"collaborators": {
"type": "integer"
},
"name": {
"type": "string"
},
"private_repos": {
"type": "integer"
},
"space": {
"type": "integer"
}
},
"required": [
"collaborators",
"name",
"space",
"private_repos"
],
"type": "object"
},
{
"type": "null"
}
]
},
"private_gists": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"public_gists": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"public_repos": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"received_events_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"starred_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"total_private_repos": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"twitter_username": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"two_factor_authentication": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"type": {
"enum": [
"User",
"Organization",
"Bot",
"Mannequin"
],
"type": "string"
},
"updated_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"url": {
"type": "string"
},
"user_view_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"login",
"avatar_url",
"html_url",
"node_id",
"url",
"followers_url",
"following_url",
"gists_url",
"starred_url",
"subscriptions_url",
"organizations_url",
"repos_url",
"events_url",
"received_events_url",
"site_admin"
],
"type": "object"
},
{
"type": "null"
}
]
},
"sandbox_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"user_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"customer_id",
"customer_login",
"user_id",
"gh_user",
"api_key_id",
"sandbox_id"
],
"type": "object"
}Responses
Most expensive first, with the platform default flagged. Reads the same registry as the dashboard's rate table, so a client's model picker can never drift from what's offered. Behind auth but not account-scoped — the selectable set is global.
curl "https://api.ellipsis.dev/models" \
-H "Authorization: Bearer $ELLIPSIS_API_KEY"{
"models": [
{
"display_name": "string",
"id": "string",
"is_default_agent_model": false,
"manufacturer": "anthropic",
"rate_card": {
"cache_read_cents_per_1m_tokens": 0,
"cache_write_1h_cents_per_1m_tokens": 0,
"cache_write_5m_cents_per_1m_tokens": 0,
"input_cents_per_1m_tokens": 0,
"output_cents_per_1m_tokens": 0
}
}
]
}No request body.
{
"properties": {
"models": {
"items": {
"properties": {
"display_name": {
"type": "string"
},
"id": {
"type": "string"
},
"is_default_agent_model": {
"type": "boolean"
},
"manufacturer": {
"enum": [
"anthropic",
"openai",
"zai",
"minimax",
"moonshot"
],
"type": "string"
},
"rate_card": {
"properties": {
"cache_read_cents_per_1m_tokens": {
"type": "integer"
},
"cache_write_1h_cents_per_1m_tokens": {
"type": "integer"
},
"cache_write_5m_cents_per_1m_tokens": {
"type": "integer"
},
"input_cents_per_1m_tokens": {
"type": "integer"
},
"output_cents_per_1m_tokens": {
"type": "integer"
}
},
"required": [
"input_cents_per_1m_tokens",
"cache_write_5m_cents_per_1m_tokens",
"cache_write_1h_cents_per_1m_tokens",
"cache_read_cents_per_1m_tokens",
"output_cents_per_1m_tokens"
],
"type": "object"
}
},
"required": [
"id",
"display_name",
"manufacturer",
"is_default_agent_model",
"rate_card"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"models"
],
"type": "object"
}Responses
curl "https://api.ellipsis.dev/usage" \
-H "Authorization: Bearer $ELLIPSIS_API_KEY"{
"by_model": [
{
"cost_fee_millicents": 0,
"cost_sandbox_cpu_millicents": 0,
"cost_sandbox_memory_millicents": 0,
"cost_tokens_millicents": 0,
"model_id": "string",
"tokens": 0
}
],
"daily": [
{
"cost_fee_millicents": 0,
"cost_sandbox_cpu_millicents": 0,
"cost_sandbox_memory_millicents": 0,
"cost_tokens_millicents": 0,
"date": "string",
"tokens": 0,
"tokens_cache_creation": 0,
"tokens_cache_read": 0,
"tokens_input": 0,
"tokens_output": 0
}
],
"period_end": "string",
"period_start": "string",
"prior_total_cost_millicents": 0,
"prior_total_tokens": 0,
"total_cost_millicents": 0,
"total_tokens": 0
}No request body.
{
"properties": {
"by_model": {
"items": {
"properties": {
"cost_fee_millicents": {
"type": "integer"
},
"cost_sandbox_cpu_millicents": {
"type": "integer"
},
"cost_sandbox_memory_millicents": {
"type": "integer"
},
"cost_tokens_millicents": {
"type": "integer"
},
"model_id": {
"type": "string"
},
"tokens": {
"type": "integer"
}
},
"required": [
"model_id",
"tokens",
"cost_tokens_millicents",
"cost_sandbox_cpu_millicents",
"cost_sandbox_memory_millicents",
"cost_fee_millicents"
],
"type": "object"
},
"type": "array"
},
"daily": {
"items": {
"properties": {
"cost_fee_millicents": {
"type": "integer"
},
"cost_sandbox_cpu_millicents": {
"type": "integer"
},
"cost_sandbox_memory_millicents": {
"type": "integer"
},
"cost_tokens_millicents": {
"type": "integer"
},
"date": {
"type": "string"
},
"tokens": {
"type": "integer"
},
"tokens_cache_creation": {
"type": "integer"
},
"tokens_cache_read": {
"type": "integer"
},
"tokens_input": {
"type": "integer"
},
"tokens_output": {
"type": "integer"
}
},
"required": [
"date",
"tokens",
"tokens_input",
"tokens_output",
"tokens_cache_read",
"tokens_cache_creation",
"cost_tokens_millicents",
"cost_sandbox_cpu_millicents",
"cost_sandbox_memory_millicents",
"cost_fee_millicents"
],
"type": "object"
},
"type": "array"
},
"period_end": {
"type": "string"
},
"period_start": {
"type": "string"
},
"prior_total_cost_millicents": {
"type": "integer"
},
"prior_total_tokens": {
"type": "integer"
},
"total_cost_millicents": {
"type": "integer"
},
"total_tokens": {
"type": "integer"
}
},
"required": [
"period_start",
"period_end",
"total_tokens",
"total_cost_millicents",
"prior_total_tokens",
"prior_total_cost_millicents",
"daily",
"by_model"
],
"type": "object"
}