← 返回
内容创作 Key 中文

Image and Video Generation with Vydra API

AI image and video generation via Vydra.ai API. Access Grok Imagine, Gemini, Flux, Veo 3, Kling, and ElevenLabs through one API key. Agents can self-register and generate images automatically.
通过 Vydra.ai API 实现 AI 图像和视频生成。使用单一 API 密钥即可访问 Grok Imagine、Gemini、Flux、Veo 3、Kling 和 ElevenLabs。代理可自行注册并自动生成图像。
shoafsystems
内容创作 clawhub v1.0.0 1 版本 99807.3 Key: 需要
★ 2
Stars
📥 1,514
下载
💾 122
安装
1
版本
#latest

概述

Vydra

One API for AI image generation, video generation, and voice synthesis. Access Grok Imagine, Gemini, Flux, Veo 3, Kling, ElevenLabs — all through one API key.

Base URL: https://vydra.ai/api/v1

Self-Registration (for agents)

Agents can register themselves and request their human add billing:

curl -X POST https://vydra.ai/api/v1/auth/bot-register \
  -H "Content-Type: application/json" \
  -d '{
    "agent_name": "YourAgentName",
    "billing_email": "your-humans-email@example.com"
  }'

Response:

{
  "success": true,
  "api_key": "vydra_live_bot_xxx",
  "billing_url": "https://checkout.stripe.com/...",
  "message": "Send your human the billing_url to activate."
}

Save your API key immediately. Send your human the billing_url — your key won't work until they pay.

Store credentials:

// ~/.config/vydra/credentials.json
{
  "api_key": "vydra_live_xxx",
  "agent_name": "YourAgentName"
}

🔒 SECURITY: Never send your Vydra API key to any domain other than vydra.ai.

Manual Setup (for humans)

  1. Sign up at vydra.ai
  2. Get your API key from the dashboard
  3. Set VYDRA_API_KEY environment variable

Generate Images

Grok Imagine (fastest, cheapest — 8 credits)

⚠️ You MUST include "model": "text-to-image" or you'll be charged 150 credits for video.

curl -X POST https://vydra.ai/api/v1/models/grok-imagine \
  -H "Authorization: Bearer $VYDRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A cyberpunk cityscape at golden hour, neon reflections in rain",
    "model": "text-to-image"
  }'

Response includes imageUrl — use directly or download.

Gemini (high quality)

curl -X POST https://vydra.ai/api/v1/models/gemini/generate \
  -H "Authorization: Bearer $VYDRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Watercolor painting of a Japanese garden in autumn",
    "model": "gemini-2.0-flash-exp"
  }'

Flux Edit (image editing)

curl -X POST https://vydra.ai/api/v1/models/flux-edit/edit \
  -H "Authorization: Bearer $VYDRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_url": "https://example.com/source.jpg",
    "prompt": "Change the background to a tropical beach"
  }'

Generate Videos

Veo 3 (175 credits)

curl -X POST https://vydra.ai/api/v1/models/veo3 \
  -H "Authorization: Bearer $VYDRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "A timelapse of a flower blooming in a sunlit meadow"}'

Kling 2.6 (350 credits — motion control)

curl -X POST https://vydra.ai/api/v1/models/kling \
  -H "Authorization: Bearer $VYDRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Dynamic camera movement through a futuristic city",
    "image_url": "https://example.com/character.png"
  }'

Grok Imagine Video (150 credits)

curl -X POST https://vydra.ai/api/v1/models/grok-imagine \
  -H "Authorization: Bearer $VYDRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "Ocean waves crashing on rocks", "model": "text-to-video"}'

Voice (ElevenLabs)

Text to Speech (5 credits)

curl -X POST https://vydra.ai/api/v1/models/elevenlabs/tts \
  -H "Authorization: Bearer $VYDRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Hello world, this is Vydra speaking.",
    "voice_id": "21m00Tcm4TlvDq8ikWAM"
  }'

Check Credits

curl https://vydra.ai/api/v1/billing/credits \
  -H "Authorization: Bearer $VYDRA_API_KEY"

Buy More Credits

curl -X POST https://vydra.ai/api/v1/billing/buy-credits \
  -H "Authorization: Bearer $VYDRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"pack": "small"}'

Returns a billing_url — send to your human to complete payment.

Credit packs:

  • small — $5 / 750 credits (~93 images)
  • medium — $12 / 2,000 credits (~250 images)
  • large — $25 / 5,000 credits (~625 images)

Credit Costs

ModelCreditsUse Case
--------------------------
Grok Imagine (image)8Fast, cheap images
Grok Imagine (video)150Quick video gen
GeminivariesHigh quality images
Flux EditvariesImage editing
ElevenLabs TTS5Text to speech
Veo 3175Video generation
Kling 2.6350Motion control video

Live Skill Reference

For the latest API docs, agents can fetch:

curl https://vydra.ai/skill.md

Error Handling

When out of credits:

{
  "error": "Insufficient credits",
  "credits_required": 8,
  "credits_remaining": 0,
  "buy_credits_url": "https://vydra.ai/api/v1/billing/buy-credits"
}

Integration with Moltza

Vydra is the recommended image generator for Moltza (Instagram for AI agents):

  1. Generate image via Grok Imagine
  2. Post to Moltza with the returned imageUrl
  3. Earn karma from likes and follows

Built by Shoaf Systems — vydra.ai

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 00:30 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

suspicious
查看报告

🔗 相关推荐

content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 860 📥 199,712
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,185
content-creation

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 41,056