API Endpoints
Models & Tools API
Models & Tools API
Get information about available AI models and tools based on your subscription plan.
List Models
Code
Returns a list of AI models available to your API key.
Response Format
Code(json)
Model Properties
Property | Type | Description |
---|---|---|
id | string | Model identifier for API calls |
name | string | Human-readable model name |
provider | string | Model provider (openai, anthropic, google) |
description | string | Model capabilities description |
max_tokens | integer | Maximum supported tokens |
supports_tools | boolean | Tool/function calling support |
supports_vision | boolean | Image understanding capability |
tier | string | Required plan tier |
List Tools
Code
Returns available tools that can be used with chat completions.
Response Format
Code(json)
Tool Properties
Property | Type | Description |
---|---|---|
id | string | Tool identifier for API calls |
name | string | Human-readable tool name |
category | string | Tool category |
description | string | What the tool does |
tier | string | Required plan tier |
parameters | object | JSON Schema for tool parameters |
Tool Categories
- visualization - Chart and graph generation
- utility - General purpose tools
- github - GitHub integration tools
- mcp - Model Context Protocol tools
Available Models by Provider
OpenAI Models
- 4o-mini - Fastest, most affordable
- 4o - Balanced performance
- gpt-4.1 - Advanced capabilities
- gpt-4.1-mini - Smaller GPT-4
- o3 - Reasoning-focused
- o3-mini - Compact reasoning
- o4-mini - Next generation
Anthropic Models
- claude-3-5-sonnet - Creative and analytical
- claude-3-7-sonnet - Enhanced Sonnet
- claude-sonnet-4-20250514 - Latest Sonnet
- claude-opus-4-20250514 - Most capable
Google Models
- gemini-2.5-flash - Fast responses
- gemini-2.5-pro - Advanced features
Model Selection Guide
For Simple Tasks
- Use
4o-mini
orgemini-2.5-flash
- Lowest credit consumption
- Fastest response times
For Complex Reasoning
- Use
claude-3-5-sonnet
orgpt-4.1
- Better understanding of context
- More accurate responses
For Creative Tasks
- Use
claude-3-5-sonnet
or4o
- Better creative writing
- More varied outputs
For Code Generation
- Use
claude-3-5-sonnet
orgpt-4.1
- Better code quality
- Understands complex requirements
Request Credit Consumption
All API calls consume request credits:
Chat Endpoint
- Base chat message: 1 request credit
- Each tool used: +1 request credit
Examples:
- Simple chat: 1 credit
- Chat with weather tool: 2 credits (1 base + 1 tool)
- Chat with 3 tools: 4 credits (1 base + 3 tools)
Image Generation
- 1 credit per image
Logo Generation
- 1 credit per logo
Example Requests
List Models
Code(bash)
List Tools
Code(bash)
Next Steps
Last modified on