Overview
The Generated Content API provides access to content generated through Junis AI agents using Replicate models. This includes images, videos, audio files, and 3D models (GLB format).Content Generation: Content is generated through AI agents that use the
gen_content tool. This API provides read-only access to view and retry generated content.Authentication
All endpoints require API key authentication with specific scopes:
Include your API key in the
X-API-Key header:
Content Types
Generated content is categorized into the following types:Content Status
Content goes through the following status lifecycle:List Content
Retrieve a paginated list of generated content for your organization.Endpoint
Query Parameters
Request Example
cURL
Python
Response
Status Code:200 OK
Response Fields
Content Item Fields
Get Content Detail
Retrieve detailed information about a specific content item.Endpoint
Path Parameters
Request Example
cURL
Response
Status Code:200 OK
Additional Detail Fields
Retry Failed Content
Retry a failed content generation. This re-queues the generation with the original parameters.Endpoint
Path Parameters
Prerequisites
- Content must have status
failed retry_countmust be less thanmax_retries(default: 3)
Request Example
cURL
Python
Response
Status Code:200 OK
Response Fields
Error Responses
Common Errors
400 Bad Request - Invalid Filter
400 Bad Request - Cannot Retry
400 Bad Request - Max Retries Reached
403 Forbidden - Insufficient Scopes
404 Not Found
Best Practices
Polling for Content Completion
Polling for Content Completion
When content is in
pending or processing status, poll the detail endpoint to check for completion:Filtering by Content Type
Filtering by Content Type
Use content type filters to retrieve specific types of generated content:
Handling Storage URLs
Handling Storage URLs
Generated content has two URLs:
output_url: Replicate’s CDN URL (may expire)storage_url: Permanent Kakao Cloud storage URL
storage_url for persistent access to content.Credit Cost Tracking
Credit Cost Tracking
The
credit_cost field shows the credit deducted for each generation. Use this for:- Billing reconciliation
- Usage monitoring
- Cost optimization
Related Resources
Authentication
Learn about API key scopes and authentication
Chat Completions
Generate content through AI conversations
Agents API
Invoke specific agents directly
Error Codes
Full list of error codes and solutions
