API Reference
Complete reference documentation for all Tenzro Platform APIs. Base URL: https://api.tenzro.com
Authentication
All API requests require authentication using an API key in the request header. Visit platform.tenzro.com to register an account and obtain your API keys.
X-API-Key: sk_your_key_here
💡 Getting Started: Visit platform.tenzro.com to register an account and obtain your API keys.
Quick Example
Request
curl -X POST https://api.tenzro.com/cortex/generate \
-H "X-API-Key: sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Hello world!",
"model": "gpt-4o",
"max_tokens": 100
}'
Response
{
"content": "Hello! How can I assist you today?",
"model": "gpt-4o",
"tokens_used": 156,
"finish_reason": "stop",
"generation_time": 1.23,
"cost_estimate": 0.0012
}
API Endpoints
/cortex/generate
Generate Text
Generate text with AI models
Key Parameters:
prompt
model
max_tokens
temperature
thinking_budget
show_thinking
/cortex/chat
Chat Completion
Multi-turn conversations with AI
Key Parameters:
messages
model
max_tokens
function_declarations
code_execution
/cortex/analyze
Analyze Content
Analyze text, images, or other content
Key Parameters:
content
analysis_type
model
images
thinking_mode
/cortex/generate/image
Generate Image
Create images with AI models
Key Parameters:
prompt
model
aspect_ratio
quality
resolution
style
negative_prompt
seed
/cortex/generate/video
Generate Video
Create videos with AI models
Key Parameters:
prompt
model
duration
quality
fps
include_audio
camera_movement
/cortex/generate/music
Generate Music
Create music with AI models
Key Parameters:
prompt
model
duration
genre
mood
tempo
instruments
/cortex/generate/speech
Generate Speech
Convert text to speech
Key Parameters:
text
voice_id
language
speed
emotion
multi_speaker
/cortex/live/session
Create Live Session
Start real-time AI session
Key Parameters:
model
audio_config
response_modalities
system_instruction
thinking_mode
/cortex/analyze/image
Analyze Image
Analyze image content with AI
Key Parameters:
image
prompt
model
/cortex/transcribe/audio
Transcribe Audio
Convert audio to text
Key Parameters:
audio
language
/cortex/reasoning/deep-think
Deep Think Reasoning
Advanced reasoning with thinking budget
Key Parameters:
prompt
thinking_budget
model
/cortex/workflows/chain
Chain AI Operations
Execute multiple AI operations in sequence
Key Parameters:
name
operations
/cortex/batch/text-generation
Batch Text Generation
Generate text for multiple prompts
Key Parameters:
batch_requests
HTTP Status Codes
OK
Successful operation
Created
Resource created successfully
Bad Request
Invalid request parameters
Unauthorized
Invalid or missing API key
Forbidden
Insufficient permissions
Not Found
Resource not found
Unprocessable Entity
Validation error
Too Many Requests
Rate limit exceeded
Internal Server Error
Server error
Rate Limits
API requests are rate limited to ensure fair usage across all users. Rate limits vary by endpoint and subscription tier.
Starter
1,000 requests/hour
Pro
10,000 requests/hour
Enterprise
100,000 requests/hour
Need Help?
Need help? Check out our Quick Start guide or contact support