XreplyAIDevelopers
API ReferenceA I Generation

Generate post content from a content idea

Requires scope: `ai:generate` and a paid plan. Subject to your plan's daily generation quota. `idea` is typically the `seed_prompt` returned by `POST /content_ideas/{id}/use`, but any topic string is accepted.

POST
/posts/generate_from_idea
AuthorizationBearer <token>

A personal API key created in the dashboard (Starter, Pro, and Team plans).

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/posts/generate_from_idea" \  -H "Content-Type: application/json" \  -d '{    "idea": "Why solo founders should ship in public",    "platform": "twitter"  }'
{  "body": "string",  "drafts": [    {      "body": "string",      "model_degraded": true    }  ],  "model_degraded": true}