Get Your API Key
First, you'll need an API key to authenticate your requests. Sign up for a free account to get started with $20 in credits.
💡 Tip
Your API key is like a password. Never share it publicly or commit it to version control. Use environment variables instead.
- Go to Sign Up and create your account
- Navigate to Dashboard → API Keys
- Click "Create New Key" and copy your secret key
Your key will look something like this:
sk-mythic-xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Install the SDK
Install the MythicDot SDK for your preferred language. We support Python, JavaScript/TypeScript, Go, and more.
# Install the Python SDK pip install mythicdot # Or with npm for JavaScript npm install @mythicdot/sdk
Set your API key as an environment variable:
# Linux/Mac export MYTHICDOT_API_KEY="sk-mythic-xxxxxxxxxxxx" # Windows PowerShell $env:MYTHICDOT_API_KEY="sk-mythic-xxxxxxxxxxxx"
Make Your First Request
Now let's send your first message to MythicDot. Here's a simple example that generates a response.
from mythicdot import MythicDot # Initialize the client client = MythicDot() # Send a message response = client.chat.completions.create( model="mythic-4", messages=[ {"role": "user", "content": "Hello, MythicDot!"} ] ) print(response.choices[0].message.content)
📤 Expected Response
🎉 Congratulations!
You've just made your first API call! The response above shows the AI's reply to your message.