diff --git a/crates/goose-providers/src/declarative.rs b/crates/goose-providers/src/declarative.rs index d09b4f5cd..c20c4c27a 100644 --- a/crates/goose-providers/src/declarative.rs +++ b/crates/goose-providers/src/declarative.rs @@ -13,6 +13,7 @@ pub(crate) mod declarative_providers { use super::*; expose_declarative_providers!( + aigateway, aimlapi, alibaba, atomic_chat, diff --git a/crates/goose-providers/src/declarative/definitions/aigateway.json b/crates/goose-providers/src/declarative/definitions/aigateway.json new file mode 100644 index 000000000..151a07af8 --- /dev/null +++ b/crates/goose-providers/src/declarative/definitions/aigateway.json @@ -0,0 +1,97 @@ +{ + "name": "aigateway", + "engine": "openai", + "display_name": "AIgateway", + "description": "1,000+ models from 85+ labs (Claude, GPT-5, Gemini, DeepSeek, Kimi, GLM) at pass-through provider pricing via a single API key", + "api_key_env": "AIGATEWAY_API_KEY", + "base_url": "https://api.aigateway.sh/v1/chat/completions", + "catalog_provider_id": "aigateway", + "dynamic_models": true, + "models": [ + { + "name": "anthropic/claude-sonnet-4.5", + "context_limit": 200000, + "input_token_cost": 0.000003, + "output_token_cost": 0.000015, + "currency": "USD" + }, + { + "name": "anthropic/claude-haiku-4.5", + "context_limit": 200000, + "input_token_cost": 0.0000008, + "output_token_cost": 0.000004, + "currency": "USD" + }, + { + "name": "openai/gpt-4o", + "context_limit": 128000, + "input_token_cost": 0.0000025, + "output_token_cost": 0.00001, + "currency": "USD" + }, + { + "name": "openai/gpt-4o-mini", + "context_limit": 128000, + "input_token_cost": 0.00000015, + "output_token_cost": 0.0000006, + "currency": "USD" + }, + { + "name": "openai/o3-mini", + "context_limit": 200000, + "input_token_cost": 0.0000011, + "output_token_cost": 0.0000044, + "currency": "USD" + }, + { + "name": "google/gemini-2.5-pro", + "context_limit": 1048576, + "input_token_cost": 0.00000125, + "output_token_cost": 0.00001, + "currency": "USD" + }, + { + "name": "google/gemini-2.5-flash", + "context_limit": 1000000, + "input_token_cost": 0.0000003, + "output_token_cost": 0.0000025, + "currency": "USD" + }, + { + "name": "deepseek/deepseek-v3.2", + "context_limit": 163840, + "input_token_cost": 0.00000027, + "output_token_cost": 0.0000011, + "currency": "USD" + }, + { + "name": "deepseek/deepseek-v4-pro", + "context_limit": 131072, + "input_token_cost": 0.00000055, + "output_token_cost": 0.00000219, + "currency": "USD" + }, + { + "name": "moonshot/kimi-k2.6", + "context_limit": 262144, + "input_token_cost": 0.00000095, + "output_token_cost": 0.000004, + "currency": "USD" + }, + { + "name": "zai-org/glm-5.3-flash", + "context_limit": 1000000, + "input_token_cost": 0.0000001, + "output_token_cost": 0.0000004, + "currency": "USD" + }, + { + "name": "meta/llama-4-scout-17b-16e-instruct", + "context_limit": 131072, + "input_token_cost": 0.00000008, + "output_token_cost": 0.0000003, + "currency": "USD" + } + ], + "supports_streaming": true +}