Welcome to the Atomelody API.
Atomelody provides computing services powered by biological foundation models such as Melo-1. Submit 3D biomolecular structure predictions and virtual screening tasks, poll for results, and integrate the service into research workflows or internal R&D systems.
Quick start
The following cURL example submits a Melo-1 structure prediction for one protein sequence and then queries its status. Commands work in Bash or Zsh.
1. Prepare an API key
Create a key on the console's API Keys page. Replace the placeholder with your key and set the environment variable in your current terminal:
export ATOMELODY_API_KEY='ak_your_api_key_here'
Subsequent requests send this credential using Authorization: Bearer.
2. Submit a prediction
This request uses Melo-1. task_type: 1 selects structure prediction, and input.sequences contains the protein chain ID and amino acid sequence.
curl --fail-with-body --silent --show-error \
'https://api.atomelody.com/v1/tasks/create' \
--header "Authorization: Bearer ${ATOMELODY_API_KEY}" \
--header 'Content-Type: application/json' \
--data '{
"model": "Melo-1",
"task_type": 1,
"input": {
"sequences": [
{
"type": "protein",
"id": ["A"],
"sequence": "MKTIIALSYIFCLVFADYKDDDDK"
}
]
}
}'
After a successful request, save data.task_id for later queries. Only the key fields are shown below; use the actual task ID and initial status returned by the API:
{
"code": "OK",
"message": "OK",
"data": {
"task_id": "tk-example",
"status": 2
}
}
3. Check status and retrieve results
Replace <TASK_ID> with the returned task ID and run this in the same terminal:
curl --fail-with-body --silent --show-error --get \
'https://api.atomelody.com/v1/tasks/status' \
--header "Authorization: Bearer ${ATOMELODY_API_KEY}" \
--data-urlencode 'task_id=<TASK_ID>'
Structure prediction runs asynchronously. Top-level code: "OK" means the API call succeeded; data.status describes computation progress:
1,2, or3: The task is waiting or running. Query again later using the same task ID.4: Prediction completed. Download the result ZIP fromdata.output_url; query again to obtain a new URL if it expires.5or6: The task failed or was cancelled. See task states.
Do not resubmit a task while waiting. Use the task waiting script to wait automatically. See the structure prediction guide for additional molecule types, complex inputs, and complete examples.
REST API conventions
These conventions apply to the REST API. For AI agent MCP endpoints, authentication, and configuration, see the MCP integration guide.
Base URL and protocol
- All public API endpoints use HTTPS.
- Base URL:
https://api.atomelody.com - Request paths use the
/v1version prefix. - Requests with bodies use JSON; set
Content-Type: application/json. - The API applies per-user rate limits. Control the request rate in your client.
Authentication
Include a valid API key in the HTTP header of every API request:
Authorization: Bearer ak_your_api_key_here
Common response format
REST API responses use a common JSON envelope:
{
"code": "OK",
"message": "OK",
"data": { ... }
}
code: A stable, machine-readable business code."OK"means success; other values identify the error type.message: A status or error description,"OK"on success. Errors may include specific field names, positions, or limits.data: The endpoint-specific response. Successful responses without data and error responses may omit this field.
Handle errors using the HTTP status and code. Do not depend on message wording, which may change with the specific cause.
Documentation
Task guides
Choose a guide for input requirements, cost estimates, task submission, and results.
API reference
Find endpoints, fields, states, and error codes when writing integration code.
Result reports
After downloading the result ZIP, create an interactive report that can be opened and shared offline.
Integration and account
Configure an AI agent, manage credentials, and understand pricing and quotas.