Integrate TechStone AI Cloud into your applications with our official SDKs. Supports Python, Node.js, Go, and REST API with unified interface across all providers.
Sign up at the Console and generate an API key. New users get $5 free credits.
pip install techstoneaifrom techstoneai import TechStoneAI
client = TechStoneAI(
api_key="your-api-key-here"
)Send messages to any supported model using our unified API. The interface is consistent across all providers.
pip install techstoneairesponse = client.chat.completions.create(
model="gpt-4o",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "What is the Token economy?"}
],
temperature=0.7,
max_tokens=1024
)
print(response.choices[0].message.content)
print(f"Tokens used: {response.usage.total_tokens}")stream = client.chat.completions.create(
model="gpt-4o",
messages=[
{"role": "user", "content": "Explain quantum computing"}
],
stream=True
)
for chunk in stream:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="")GPT-4o
OpenAI
GPT-4o Mini
OpenAI
Claude 3.7 Sonnet
Anthropic
Claude 3.5 Haiku
Anthropic
Gemini Pro
Gemini Flash
DeepSeek V3
DeepSeek
StoneCloud Fast
StoneCloud
Access 40+ models through a single API. View all models and pricing →
| Parameter | Type | Default | Description |
|---|---|---|---|
| model | string | Required | Model ID to use (e.g., "gpt-4o", "claude-3.7-sonnet") |
| messages | array | Required | Array of message objects with role and content |
| temperature | number | 0.7 | Sampling temperature (0.0 - 2.0). Lower = more focused |
| max_tokens | integer | null | Maximum tokens to generate in the completion |
| top_p | number | 1.0 | Nucleus sampling parameter. Use temperature or top_p, not both |
| stream | boolean | false | If true, returns partial message deltas in real-time |
| stop | string/array | null | Up to 4 sequences where the API will stop generating |
| frequency_penalty | number | 0 | Penalize new tokens based on frequency (-2.0 to 2.0) |
| presence_penalty | number | 0 | Penalize new tokens based on presence (-2.0 to 2.0) |