Cosmos Platform
Access our orchestration models for real-world applications with simple, powerful APIs
Our models
Discover our four main model families designed for specific tasks and optimized for maximum efficiency
Files models
Analyze, query, and extract using our powerful processing technologies and post-RAG technology.
- Post-RAG Technology
- Intelligent Parsing
- Vectorization
- PDF, Word, PPT compatibility
- Up to 1GB storage
Translation models
Advanced translation capabilities for multiple languages and formats.
- Over 40 languages supported
- Contextual awareness
- Custom glossaries - coming soon
- PDF, Word, PPT compatibility
- URL retrieval
Web models
Analyze, query, and extract information using our cutting-edge technologies.
- Web Requests
- Natural Language Responses
- Website Specification
- 1000 requests/month
- 2-5 seconds per request
Vision models
State-of-the-art generative AI computer vision and processing.
- Information extraction
- Natural language description
- State-of-the-art performance
- PNG, JPG, PDF compatibility
- 2-5s processing time
Developer quickstart
Learn how to make your first API request with Cosmos Platform. Our API provides simple interfaces to state-of-the-art AI models for web search, document analysis, translation, and vision processing.
Create and export an API key
Create an API key in the dashboard, which you'll use to securely access the API. Store the key in a safe location, like a .env file or another secure configuration file.
export COSMOS_API_KEY="your_api_key_here"
Make your first API request
With your Cosmos API key exported, you're ready to make your first API request. You can use our official SDKs or the REST API directly.
from cosmos import CosmosClient
cosmos_client = CosmosClient(api_key="your-cosmos-api-key")
response = cosmos_client.llm_chat_request(text="Hello Cosmos!")
print(f"Cosmos says: {response}")
Next steps
Now that you've made your first Cosmos API request, explore these resources:
- Web Search Documentation
- Document Analysis Guide
- Translation API Reference
- Chat with LLM
Advanced Usage Examples
Explore more complex use cases and advanced features of our API to build sophisticated applications.
Advanced Web Search
Perform a web search using the provided text and output language.
from cosmos import CosmosClient
cosmos_client = CosmosClient(apikey="my-cosmos-api-key")
response = cosmos_client.web_search_request(
text="What is the capital of France?",
output_language="en"
)
print(response)
Document Analysis
Queries a vectorized index for information related to a given question.
from cosmos import CosmosClient
cosmos_client = CosmosClient(apikey="my-cosmos-api-key")
response = cosmos_client.files_index_ask_request(
index_uuid='f2503e3e-676a-4673-8ed5-cd7c8b627cea',
question='What is discussed about early childhood?',
output_language="en",
)
print(response)
Check out our extensive documentation for more advanced usage examples and best practices.