Skip to main content

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:
Default Scopes: The content:read and content:retry scopes are not enabled by default when creating API keys. You must explicitly enable these scopes during key creation.
Include your API key in the X-API-Key header:
See Authentication for details.

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_count must be less than max_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

When content is in pending or processing status, poll the detail endpoint to check for completion:
Use content type filters to retrieve specific types of generated content:
Generated content has two URLs:
  • output_url: Replicate’s CDN URL (may expire)
  • storage_url: Permanent Kakao Cloud storage URL
Always prefer storage_url for persistent access to content.
The credit_cost field shows the credit deducted for each generation. Use this for:
  • Billing reconciliation
  • Usage monitoring
  • Cost optimization
Note: Credit costs support 6 decimal places for precision.

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