Skip to main content
Build custom chat applications using the Comput3 Network API with OpenAI-compatible endpoints.

Quick Start

1

Get API Key

Obtain your API key from the Comput3 Dashboard.
2

Make Your First Request

Send a simple chat completion request:
curl
3

Handle the Response

Process the JSON response:

API Endpoints

Chat Completions

Endpoint: POST /v1/chat/completions Create a chat completion with conversation context.
model
string
required
The model to use for completion. Available models:
  • hermes4:70b - Hermes 4 model (70B parameters) for advanced reasoning
  • hermes4:405b - Largest Hermes 4 model (405B parameters) for complex tasks
  • deepseek-v3.1 - Latest DeepSeek model for coding and general tasks
  • kimi-k2 - Kimi K2 model for general conversation
  • qwen3-coder:480b - Massive Qwen3 Coder model for advanced coding tasks
  • qwen3-max - Large-scale reasoning and analysis
  • grok-code-fast-1 - Fast coding assistance
  • claude-sonnet-4 - Creative writing and analysis
messages
array
required
Array of message objects representing the conversation history.
temperature
number
default:"1"
Controls randomness. Range: 0.0 to 2.0
max_tokens
integer
Maximum number of tokens to generate
stream
boolean
default:"false"
Whether to stream partial message deltas
stop
string | array
Sequences where the API will stop generating tokens

SDK Examples

Python

JavaScript/Node.js

Streaming Responses

Enable real-time response streaming for better user experience:

Advanced Features

Function Calling

Enable the model to call external functions:

Conversation Memory

Maintain conversation context across multiple requests:

Error Handling

Implement robust error handling for production applications:

Rate Limiting and Optimization

Managing Rate Limits

Implement a queue system for high-volume applications:
Optimize token usage to reduce costs:

Best Practices

Security

  • Store API keys as environment variables
  • Use HTTPS for all requests
  • Implement proper authentication
  • Validate and sanitize user inputs

Performance

  • Use appropriate models for each task
  • Implement response caching
  • Use streaming for long responses
  • Monitor token usage and costs

Error Handling

  • Implement retry logic with exponential backoff
  • Handle rate limiting gracefully
  • Log errors for debugging
  • Provide fallback responses

User Experience

  • Show loading states during API calls
  • Implement typing indicators
  • Cache frequent responses
  • Provide offline functionality where possible