Moby AI API Documentation
Build amazing AI applications with Moby's API
Introduction
The Moby AI API provides powerful AI capabilities through a simple, well-documented interface. Our REST-based API allows developers to integrate intelligent AI functionality into any application in minutes.
Quick Start
1. Get API Key
Get your API key from the dashboard and set it as an environment variable.
curl -H "Authorization: Bearer $API_KEY"
2. Make Your First Request
Use our API endpoint to make your first AI request
curl -X POST -H "Content-Type: application/json"
-d '{"input": "What is quantum computing?"}'
Moby-ai-Model/v1
Authentication
Bearer Token
All requests require an Authorization
header with the Bearer
scheme.
Authorization: Bearer <your_api_key_here>
Content-Type: application/json
Security
Our API uses 256-bit encryption and rotating keys
Token Rotation
API keys auto-expire after 90 days of inactivity
Available Endpoints
/api/complete
POST /api/complete
Query Parameters
{
"prompt": "What was the impact of the moon landing?",
"temperature": 0.5,
"max_tokens": 300,
"n": 3
}
Parameters:
-
prompt
- The user's input to the model -
temperature
- 0=in-deterministic, 1=highly creative -
max_tokens
- Maximum words to generate -
n
- Number of alternatives to generate
Example Response Format
{ "choices": [ {"text": "The lunar landing...", "index": 0}, {"text": "In July 1969...", "index": 1}, ... ] }
Rate Limits
5
Requests / second
100
Requests / Minute
1000
Requests / Hour
Throttling Policy
- 429 Too Many Requests
- 404 Not Found
- 500 Internal Server Error
- 503 Service Unavailable
- 401 Unauthorized Access
Error Handling
Common Errors
401 Unauthorized
429 Too Many Requests
400 Bad Request
500 Internal Server Error