Image and Video Generation with Vydra API
v1AI image and video generation via Vydra.AI API. 访问 Grok Imagine, Gemini, Flux, Veo 3, Kling, and ElevenLabs through one API key. 代理s can self-register and 生成 images automatically.
运行时依赖
安装命令
点击复制技能文档
Vydra
One API for AI image generation, video generation, and voice synthesis. 访问 Grok Imagine, Gemini, Flux, Veo 3, Kling, ElevenLabs — all through one API key.
Base URL: https://vydra.AI/API/v1
Self-Registration (for 代理s)
代理s can register themselves and 请求 their human 添加 billing:
curl -X POST https://vydra.AI/API/v1/auth/机器人-register \ -H "Content-Type: 应用/json" \ -d '{ "代理_name": "Your代理Name", "billing_emAIl": "your-humans-emAIl@example.com" }'
响应:
{ "成功": true, "API_key": "vydra_live_机器人_xxx", "billing_url": "https://检查out.stripe.com/...", "message": "发送 your human the billing_url to activate." }
Save your API key immediately. 发送 your human the billing_url — your key won't work until they pay.
Store 凭证s:
// ~/.config/vydra/凭证s.json { "API_key": "vydra_live_xxx", "代理_name": "Your代理Name" }
🔒 SECURITY: Never 发送 your Vydra API key to any domAIn other than vydra.AI.
Manual 设置up (for humans) 签名 up at vydra.AI 获取 your API key from the 仪表盘 设置 VYDRA_API_KEY 环境 variable 生成 Images Grok Imagine (fastest, cheapest — 8 credits)
⚠️ You MUST include "模型": "text-to-image" or you'll be charged 150 credits for video.
curl -X POST https://vydra.AI/API/v1/模型s/grok-imagine \ -H "Authorization: Bearer $VYDRA_API_KEY" \ -H "Content-Type: 应用/json" \ -d '{ "prompt": "A cyberpunk cityscape at golden hour, neon reflections in rAIn", "模型": "text-to-image" }'
响应 includes imageUrl — use directly or 下载.
Gemini (high 质量) curl -X POST https://vydra.AI/API/v1/模型s/gemini/生成 \ -H "Authorization: Bearer $VYDRA_API_KEY" \ -H "Content-Type: 应用/json" \ -d '{ "prompt": "Watercolor pAInting of a Japanese garden in autumn", "模型": "gemini-2.0-flash-exp" }'
Flux Edit (image editing) curl -X POST https://vydra.AI/API/v1/模型s/flux-edit/edit \ -H "Authorization: Bearer $VYDRA_API_KEY" \ -H "Content-Type: 应用/json" \ -d '{ "image_url": "https://example.com/source.jpg", "prompt": "Change the background to a tropical beach" }'
生成 Videos Veo 3 (175 credits) curl -X POST https://vydra.AI/API/v1/模型s/veo3 \ -H "Authorization: Bearer $VYDRA_API_KEY" \ -H "Content-Type: 应用/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/模型s/kling \ -H "Authorization: Bearer $VYDRA_API_KEY" \ -H "Content-Type: 应用/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/模型s/grok-imagine \ -H "Authorization: Bearer $VYDRA_API_KEY" \ -H "Content-Type: 应用/json" \ -d '{"prompt": "Ocean waves crashing on rocks", "模型": "text-to-video"}'
Voice (ElevenLabs) Text to Speech (5 credits) curl -X POST https://vydra.AI/API/v1/模型s/elevenlabs/tts \ -H "Authorization: Bearer $VYDRA_API_KEY" \ -H "Content-Type: 应用/json" \ -d '{ "text": "Hello world, this is Vydra speaking.", "voice_id": "21m00Tcm4TlvDq8ikWAM" }'
检查 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: 应用/json" \ -d '{"pack": "small"}'
Returns a billing_url — 发送 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 模型 Credits Use Case Grok Imagine (image) 8 Fast, cheap images Grok Imagine (video) 150 Quick video gen Gemini varies High 质量 images Flux Edit varies Image editing ElevenLabs TTS 5 Text to speech Veo 3 175 Video generation Kling 2.6 350 Motion control video Live 技能 Reference
For the latest API docs, 代理s can fetch:
curl https://vydra.AI/技能.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 生成器 for Moltza (Instagram for AI 代理s):
生成 image via Grok Imagine Post to Moltza with the returned imageUrl Earn karma from likes and follows
Built by Shoaf 系统s — vydra.AI