- Getting Started
- Quickstart
Getting Started
Quickstart
Get CoreThink running in minutes
- Sign in to create your CoreThink account
- You’ll be guided through our quick onboarding process
- Enter your organization name - this will contain all your API keys and usage
- Choose a name for your first API key (e.g., “Development Key”, “Test Project”)
- Select your preferred inference provider (Friendli, Cerebras, or SambaNova)
- Click “Create Organization” to complete setup
After completing these steps, your API key will be generated and displayed. Copy it immediately - you won’t be able to see it again for security reasons.
Organizations in CoreThink serve as secure containers for your API keys, usage tracking, and billing. Each organization can have multiple API keys for different projects or environments, making it easy to manage access and monitor costs across your team.
pip install openai
CoreThink is available through the OpenAI SDK or the AI SDK
from openai import OpenAI
client = OpenAI(
base_url="https://api.corethink.ai/v1/code",
api_key="your-api-key-here"
)
full_response = ""
stream = client.chat.completions.create(
model="corethink",
messages=[{"role": "user", "content": "sup"}],
temperature=0.1,
stream=True
)
print("AI Response (streaming):")
print("-" * 50)
for chunk in stream:
delta = chunk.choices[0].delta
if delta.content:
full_response += delta.content
print(delta.content, end="", flush=True)