Queue tasks for asynchronous execution. Process thousands of requests in parallel without blocking your application.
Submit jobs and return immediately. Poll or use webhooks for results.
Queue millions of tasks. We handle parallelization and rate limiting.
Background jobs are half the cost of synchronous API calls.
from mythicdot import MythicDot
client = MythicDot()
# Submit a background job
job = client.jobs.create(
task="chat.completions",
input={
"model": "mythic-4",
"messages": [
{"role": "user", "content": "Write a blog post about AI"}
]
},
webhook_url="https://yourapp.com/webhook"
)
print(f"Job submitted: {job.id}")
print(f"Status: {job.status}")
# Poll for results
import time
while job.status != "completed":
time.sleep(1)
job = client.jobs.retrieve(job.id)
# Get the result
result = job.result
print(result.choices[0].message.content)
Generate hundreds of product descriptions, blog posts, or translations
Analyze large datasets, extract entities, or classify documents
Schedule embeddings updates, report generation, or data sync
Summarize, categorize, and draft replies for email backlogs
Submit jobs and free up your application.