# Generate

## Generate Content

> Create a new AI content generation job.

```json
{"openapi":"3.0.0","info":{"title":"Creative API","version":"1.0.0"},"servers":[{"url":"https://api.deepixels.co/v1","description":"Production Server"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}}},"paths":{"/generate":{"post":{"summary":"Generate Content","description":"Create a new AI content generation job.","tags":["Generation"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string","description":"Model name to use for generation"},"input":{"type":"object","description":"Model-specific input parameters (varies by model)"},"webhook":{"type":"string","format":"uri","description":"URL where the job result will be sent upon completion"}},"required":["model","input"]}}}},"responses":{"200":{"description":"Generation job created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string","description":"Unique job identifier"},"status":{"type":"string"}}}}}},"400":{"description":"Invalid request or generation failed","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"message":{"type":"string"}}}}}},"401":{"description":"Unauthorized - Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"message":{"type":"string"}}}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"message":{"type":"string"}}}}}}}}}}}
```

## Get Generation Job

> Retrieve details of a specific generation job by its ID.

```json
{"openapi":"3.0.0","info":{"title":"Creative API","version":"1.0.0"},"servers":[{"url":"https://api.deepixels.co/v1","description":"Production Server"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}}},"paths":{"/get":{"get":{"summary":"Get Generation Job","description":"Retrieve details of a specific generation job by its ID.","tags":["Generation"],"parameters":[{"name":"jobId","in":"query","required":true,"schema":{"type":"string"},"description":"Unique job identifier"}],"responses":{"200":{"description":"Job details retrieved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string","description":"Unique job identifier"},"model":{"type":"string","description":"Model name used for generation"},"status":{"type":"string","enum":["created","pending","processing","completed","failed"],"description":"Current job status"},"input":{"type":"object","description":"Input parameters used for generation"},"webhook":{"type":"string","format":"uri","description":"Webhook URL configured for this job","nullable":true},"date":{"type":"number","description":"Job creation timestamp in milliseconds since epoch"},"output":{"type":"object","description":"Output data (only available when status is completed)","nullable":true,"properties":{"imageUrl":{"type":"array","description":"List of generated image URLs (for image generation jobs)","nullable":true,"items":{"type":"string","format":"uri"}},"videoUrl":{"type":"string","format":"uri","description":"Generated video URL (for video generation jobs)","nullable":true}}}}}}}},"400":{"description":"Invalid request or missing jobId","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"message":{"type":"string"}}}}}},"401":{"description":"Unauthorized - Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"Job not found","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"message":{"type":"string"}}}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"message":{"type":"string"}}}}}}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nudify.me/api/generate.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
