curl --request GET \
--url https://api.geekidea.ai/v1/organization/generations/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.geekidea.ai/v1/organization/generations/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.geekidea.ai/v1/organization/generations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "chatcmpl-0192f1c3a7b87c3e9a4f5b6c7d8e9f01",
"object": "chat.completion",
"model": "deepseek/deepseek-v4.1-flash",
"status": "completed",
"created_at": 123,
"completed_at": 123,
"cancel_requested_at": 123,
"latency_ms": 123,
"api_key": {
"id": "<string>",
"name": "prod"
},
"project_id": "<string>",
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123,
"prompt_tokens_details": {
"cached_tokens": 123,
"cache_write_tokens": 123
},
"completion_tokens_details": {
"reasoning_tokens": 123
},
"cost": 0.0000133,
"currency": "USD",
"cost_details": {
"input": 0.0000038,
"cached_input": 0,
"output": 0.0000095,
"discount": 0,
"image": 0.036,
"video": 0.25,
"audio": 0.012,
"models": 1.64,
"workflow_fee": 0.2
}
},
"billing_status": "settled",
"adjustments": [
{
"id": "<string>",
"type": "refund",
"amount": 123,
"reason": "<string>",
"created_at": 123
}
],
"net_cost": 0.0000081,
"estimated_cost": 0.08,
"currency": "USD",
"error_code": "<string>",
"metadata": {},
"output": {
"videos": [
{
"url": "<string>",
"thumbnail_url": "<string>",
"previews": {
"preview": "<string>",
"lite": "<string>",
"grid": "<string>",
"icon": "<string>"
},
"seconds": 5,
"width": 1280,
"height": 720
}
],
"audios": [
{
"url": "<string>",
"seconds": 8.4,
"mime": "audio/wav"
}
]
},
"data": [
{
"url": "<string>",
"b64_json": "<string>",
"revised_prompt": "<string>",
"previews": {
"preview": "<string>",
"lite": "<string>",
"grid": "<string>",
"icon": "<string>"
},
"width": 1024,
"height": 1024
}
],
"line_items": [
{
"type": "model",
"id": "img_0192f1c3a7b87c3e9a4f5b6c7d8e9f01",
"model": "openai/gpt-image-2",
"status": "completed",
"cost": 0.036,
"step": "assets",
"unit": "image",
"quantity": 12,
"unit_price": 0.015,
"amount": 0.18
}
]
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}Retrieve an organization generation
Retrieves any generation in the organization (inference keys can only see their own).
curl --request GET \
--url https://api.geekidea.ai/v1/organization/generations/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.geekidea.ai/v1/organization/generations/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.geekidea.ai/v1/organization/generations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "chatcmpl-0192f1c3a7b87c3e9a4f5b6c7d8e9f01",
"object": "chat.completion",
"model": "deepseek/deepseek-v4.1-flash",
"status": "completed",
"created_at": 123,
"completed_at": 123,
"cancel_requested_at": 123,
"latency_ms": 123,
"api_key": {
"id": "<string>",
"name": "prod"
},
"project_id": "<string>",
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123,
"prompt_tokens_details": {
"cached_tokens": 123,
"cache_write_tokens": 123
},
"completion_tokens_details": {
"reasoning_tokens": 123
},
"cost": 0.0000133,
"currency": "USD",
"cost_details": {
"input": 0.0000038,
"cached_input": 0,
"output": 0.0000095,
"discount": 0,
"image": 0.036,
"video": 0.25,
"audio": 0.012,
"models": 1.64,
"workflow_fee": 0.2
}
},
"billing_status": "settled",
"adjustments": [
{
"id": "<string>",
"type": "refund",
"amount": 123,
"reason": "<string>",
"created_at": 123
}
],
"net_cost": 0.0000081,
"estimated_cost": 0.08,
"currency": "USD",
"error_code": "<string>",
"metadata": {},
"output": {
"videos": [
{
"url": "<string>",
"thumbnail_url": "<string>",
"previews": {
"preview": "<string>",
"lite": "<string>",
"grid": "<string>",
"icon": "<string>"
},
"seconds": 5,
"width": 1280,
"height": 720
}
],
"audios": [
{
"url": "<string>",
"seconds": 8.4,
"mime": "audio/wav"
}
]
},
"data": [
{
"url": "<string>",
"b64_json": "<string>",
"revised_prompt": "<string>",
"previews": {
"preview": "<string>",
"lite": "<string>",
"grid": "<string>",
"icon": "<string>"
},
"width": 1024,
"height": 1024
}
],
"line_items": [
{
"type": "model",
"id": "img_0192f1c3a7b87c3e9a4f5b6c7d8e9f01",
"model": "openai/gpt-image-2",
"status": "completed",
"cost": 0.036,
"step": "assets",
"unit": "image",
"quantity": 12,
"unit_price": 0.015,
"amount": 0.18
}
]
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}{
"error": {
"message": "The model does not exist or you do not have access to it.",
"type": "not_found_error",
"param": "model",
"code": "model_not_found",
"retryable": false,
"errors": [
{
"param": "messages",
"code": "missing_parameter",
"message": "<string>"
}
]
}
}Authorizations
Provide your API key in the Authorization header using Bearer auth
Path Parameters
ID returned by the call, e.g. chatcmpl-…
Response
OK
Billing record of one call
Public ID, also the billing ID
"chatcmpl-0192f1c3a7b87c3e9a4f5b6c7d8e9f01"
Object type, same as the original response
"chat.completion"
Canonical model ID
"deepseek/deepseek-v4.1-flash"
Status: queued / in_progress / completed / failed / cancelled
queued, in_progress, completed, failed, cancelled "completed"
Creation time (Unix seconds)
Completion time (Unix seconds); null while running
When cancellation was requested (Unix seconds); null if never requested. A generation already sent upstream follows the upstream outcome after cancellation is requested
Total latency (ms)
API key reference
Show child attributes
Show child attributes
Project ID (proj_ prefix)
Usage and cost (shape depends on the call type: text or image); null when failed or not charged
- Option 1
- Option 2
- Option 3
Show child attributes
Show child attributes
Billing status: estimated / settled / refunded / adjusted
estimated, settled, refunded, adjusted "settled"
Refunds, extra charges and compensations
Show child attributes
Show child attributes
Net cost (USD) = cost + sum of adjustments
0.0000081
Estimated cost (USD): while the generation is still queued or running, the amount held for it (from the quote); omitted once finished
0.08
Currency
"USD"
Error code when failed
Metadata passed with the call
Show child attributes
Show child attributes
Outputs of an asynchronous task, grouped by kind
Show child attributes
Show child attributes
Generated images (image calls); links are re-signed on every query
Show child attributes
Show child attributes
Cost breakdown of a workflow: each sub-call and each workflow fee (only for run_ and wfc_ IDs)
Show child attributes
Show child attributes
