Xpersona
M

MyReels API

CLAWHUB · Unverified

Use this skill when the user wants to generate images, videos, speech, or music with MyReels, inspect the live model schema, submit a generation task, list t...

62
Rank
84
Safety
997
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 997 downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17b30e1a2w0zq21xjhpp8s2xn83zy6n:myreels-api
  1. Install using `clawhub skill install s17b30e1a2w0zq21xjhpp8s2xn83zy6n:myreels-api` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/beautyaiclub/myreels-api before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-beautyaiclub-myreels-api/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

136,508 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: myreels-api
description: >
  Use this skill when the user wants to generate images, videos, speech, or music
  with MyReels, inspect the live model schema, submit a generation task, list
  the authenticated user's tasks, or poll task status. Prefer the bundled shell
  scripts before hand-writing curl/fetch requests. Use this whenever the user
  mentions MyReels generation, model selection, task history, task polling,
  result URLs, or MyReels API integration.
homepage: https://myreels.ai
repository: https://github.com/myreelsai/skills
requires:
  env:
    - MYREELS_ACCESS_TOKEN
    - MYREELS_BASE_URL
  runtime:
    - curl
    - jq
metadata:
  author: myreelsai
---

# MyReels API

This skill is the executable interface to the MyReels public API. Use the bundled scripts first. Fall back to the raw HTTP references only when the scripts do not cover the case.

## Operator Rules

- Always read the live model schema before building a request body.
- Do not invent parameter names. Use `userInputSchema` from the live models endpoint.
- Prefer the bundled scripts over hand-written `curl` or `fetch`.
- Save result URLs on your side. Do not assume MyReels stores them forever.

## Prerequisites

- An active MyReels subscription is required for generation and task query endpoints.
- Create an AccessToken in [myreels.ai/developer](https://myreels.ai/developer).
- `GET https://api.myreels.ai/api/v1/models/api` was verified on March 18, 2026 and currently does not require `Authorization`.

Config file `~/.myreels/config`:

```bash
MYREELS_BASE_URL="https://api.myreels.ai"
MYREELS_ACCESS_TOKEN="YOUR_ACCESS_TOKEN"
```

The scripts in this skill read that file automatically. Environment variables override the file.

First-time setup or config issues:

```bash
scripts/myreels-doctor.sh
```

## Bundled Scripts

- `scripts/myreels-doctor.sh`
  Checks config, dependencies, and live connectivity.
- `scripts/myreels-models.sh`
  Loads live model metadata and can filter by tag or `modelName`.
- `scripts/myreels-generate.sh`
  Submits a generation task for a chosen model.
- `scripts/myreels-tasks-list.sh`
  Lists the authenticated user's tasks with paging and filters.
- `scripts/myreels-task-get.sh`
  Queries a task and derives the next action for the agent.

## Recommended Workflow

### 1. Load live models first

```bash
scripts/myreels-models.sh --summary
```

If you already know the candidate model, inspect its full schema:

```bash
scripts/myreels-models.sh --model MODEL_NAME
```

Priority fields when selecting a model:

- `modelName`
- `name`
- `tags`
- `description`
- `estimatedCost`
- `displayConfig.estimatedTime`
- `userInputSchema`
- `userInputSchema.<param>.label`
- `userInputSchema.<param>.description`
- `userInputSchema.<param>.default`
- `userInputSchema.<param>.options`

For natural-language requests such as "stronger motion" or "disable prompt extension", map user intent from `label` and `description`, not from field names alone.

### 2. List exist

_meta.json

{
  "ownerId": "kn72p906gfpb0rz3y5x950g38n833vfr",
  "slug": "myreels-api",
  "version": "1.0.9",
  "publishedAt": 1775007834661
}

references/code-examples.md

# Code Examples

### Install The Skill

```bash
npx skills add https://github.com/myreelsai/skills --skill myreels-api -g
```

Remove `-g` for a project-level install.

### Load Live Model Metadata

`GET https://api.myreels.ai/api/v1/models/api` was verified on March 18, 2026 and currently does not require `Authorization`.

#### JavaScript / TypeScript

```typescript
const res = await fetch('https://api.myreels.ai/api/v1/models/api');
if (!res.ok) throw new Error(`Load models failed: HTTP ${res.status}`);

const payload = await res.json();
const items = payload?.data?.items ?? [];

for (const item of items) {
  console.log(item.modelName, item.tags);
  console.log('displayPoints', item.estimatedCost);
  for (const [key, field] of Object.entries(item.userInputSchema ?? {})) {
    console.log(
      key,
      field.type,
      field.required,
      field.default ?? field.defaultValue,
      field.description
    );
  }
}
```

Display cost rule:

- use `estimatedCost` as the display points field

#### Python

```python
import requests

r = requests.get("https://api.myreels.ai/api/v1/models/api")
r.raise_for_status()
payload = r.json()

for item in payload.get("data", {}).get("items", []):
    print(item.get("modelName"), item.get("tags"))
    print("displayPoints", item.get("estimatedCost"))
    for key, field in (item.get("userInputSchema") or {}).items():
        print(
            key,
            field.get("type"),
            field.get("required"),
            field.get("default", field.get("defaultValue")),
            field.get("description"),
        )
```

### Submit And Poll A Task

#### JavaScript / TypeScript

```typescript
const TOKEN = 'YOUR_ACCESS_TOKEN';
const MODEL = 'nano-banana2';

const submitRes = await fetch(`https://api.myreels.ai/generation/${MODEL}`, {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Authorization: `Bearer ${TOKEN}`,
  },
  body: JSON.stringify({
    prompt: 'A cinematic portrait with soft studio lighting',
  }),
});

const { data: { taskID } } = await submitRes.json();

async function pollTask(taskID: string, intervalMs = 10_000) {
  while (true) {
    const res = await fetch(`https://api.myreels.ai/query/task/${taskID}`, {
      method: 'GET',
      headers: {
        Authorization: `Bearer ${TOKEN}`,
      },
    });

    const payload = await res.json();
    if (!res.ok) throw new Error(payload.message || `Query failed: HTTP ${res.status}`);
    if (payload.status !== 'ok') throw new Error(payload.message || 'Query failed');

    const { data } = payload;
    if (data.status === 'completed') return data;
    if (data.status === 'failed') throw new Error('Task failed');

    await new Promise(r => setTimeout(r, intervalMs));
  }
}

const result = await pollTask(taskID, 10_000);
console.log(result.resultUrls);
```

Polling guidance:

- image generation / image editing: 10 seconds
- video generation: 30 seconds to 1 minute

#### Python

```python
import requests
import time

TOKEN

references/errors.md

# Error Handling

### Task Submission Status Codes

| Status | Meaning |
|--------|------|
| 200 | Task created successfully |
| 400 | Empty body, invalid field format, or missing required parameters |
| 401 | Missing Authorization header, or invalid / expired token |
| 402 | Insufficient points |
| 403 | Model requires extra permission or subscription |
| 404 | `modelName` not found |
| 500 | Server-side processing error |
| 507 | Insufficient storage |

### Task Query Status Codes

| Status | Meaning |
|--------|------|
| 200 | Query succeeded |
| 400 | Invalid task ID format or invalid request |
| 401 | Missing Authorization header, or invalid / expired token |
| 404 | Task not found, or not accessible for the current user |
| 429 | Query rate too high |
| 500 | Server-side processing error |

### Task List Query Status Codes

| Status | Meaning |
|--------|------|
| 200 | Query succeeded |
| 400 | Invalid `page`, `limit`, or `status` value |
| 401 | Missing Authorization header, or invalid / expired token |
| 500 | Server-side processing error |

### Task Status Enum

Public task status values:

- `pending`
- `processing`
- `completed`
- `failed`
- `cancelled`
- `warning`

### Response Evaluation Order

- If the upstream response includes `code`, Worker uses it as the final HTTP status.
- Otherwise Worker falls back to the upstream HTTP status.
- Check the final HTTP status first.
- If the HTTP status is `2xx`, then inspect the response body `status`.
- `status === "ok"` means success.
- `status === "failed"` means failure.

Example:

```json
{ "status": "failed", "message": "Missing required header: Authorization" }
```

### Error Handling Example

```typescript
const res = await fetch(`https://api.myreels.ai/generation/${modelName}`, {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Authorization: `Bearer ${ACCESS_TOKEN}`,
  },
  body: JSON.stringify(userInput),
});

const data = await res.json();
if (res.status === 401) throw new Error('Invalid AccessToken');
if (res.status === 402) throw new Error('Insufficient points');
if (res.status === 403) throw new Error('Subscription or permission required');
if (!res.ok || data.status !== 'ok') throw new Error(data.message || 'Task submission failed');
```

### Rate Limit Guidance

- query endpoint limit: 60 requests per minute
- image generation / image editing polling: 10 seconds
- video generation polling: 30 seconds to 1 minute
- if you receive `429`, back off and retry later

### Cost Display Guidance

- use `estimatedCost` as the final user-facing points value

### Public Path Scope

Public paths:

- `POST /generation/:modelName`
- `GET /generation/tasks`
- `GET /query/task/:taskID`
- `GET|POST /api/v1/*`

Other paths may return:

```json
{ "status": "failed", "message": "Path not allowed" }
```

references/models.md

# Live Model Metadata

The single source of truth for available models, parameter definitions, defaults, options, and field descriptions is:

`GET https://api.myreels.ai/api/v1/models/api`

Verified on March 18, 2026:

- currently accessible without `Authorization`
- currently does not require `VITE_API_KEY`

If your runtime can access this endpoint, prefer the live response over any static model list.

### Cost Display Rule

Use `estimatedCost` as the final user-facing cost field.

- display field: `estimatedCost`
- display unit: `points`

### Quick Request

```bash
curl -s "https://api.myreels.ai/api/v1/models/api"
```

### Minimal JavaScript Example

```typescript
const res = await fetch('https://api.myreels.ai/api/v1/models/api');
if (!res.ok) throw new Error(`Load models failed: HTTP ${res.status}`);

const payload = await res.json();
for (const item of payload?.data?.items ?? []) {
  console.log(item.modelName, item.name, item.tags, item.estimatedCost, 'points');
}
```

### Minimal Python Example

```python
import requests

r = requests.get("https://api.myreels.ai/api/v1/models/api")
r.raise_for_status()
for item in r.json().get("data", {}).get("items", []):
    print(
        item.get("modelName"),
        item.get("name"),
        item.get("tags"),
        item.get("estimatedCost"),
        "points",
    )
```

### Important Top-Level Fields

- `modelName`
  - the real identifier used in `POST /generation/:modelName`
- `name`
  - display name
- `tags`
  - capability tags such as `t2i`, `i2i`, `i2e`, `t2v`, `i2v`, `t2a`, `m2a`
- `description`
  - model-level description and usage notes
- `estimatedCost`
  - estimated display points
- `displayConfig.estimatedTime`
  - estimated generation time
- `estimatedPoints`
  - optional backend-provided points field; prefer `estimatedCost` for public display
- `userInputSchema`
  - full parameter schema for this model

### How To Read `userInputSchema`

Each entry in `userInputSchema` is a request parameter. These fields matter most:

- `type`
- `label`
- `description`
- `required`
- `default` / `defaultValue`
- `options`
- `min` / `max` / `step`
- `placeholder`

When mapping natural-language instructions to parameters, prioritize `label` and `description`.

Example:

- user says: "stronger motion"
- live schema may show:
  - `strength.label = "Motion Strength"` or an equivalent localized label
  - `strength.description` explains that larger values increase motion freedom

Without the live description, agents can easily map the request incorrectly.

### Recommended Selection Flow

1. Call `GET /api/v1/models/api`.
2. Filter models by `tags`.
3. Inspect `name`, `description`, `estimatedCost`, and `estimatedTime`.
4. Read `userInputSchema`.
5. Build the request body from `label`, `description`, `default`, and `options`.

### Polling Guidance

- image generation / image editing: every 10 seconds
- video generation: every 30 seconds to 1 minute

### Fallback

If your runtime cannot access `api.myreels.ai`

Sponsored

Ads related to MyReels API and adjacent AI workflows.