← 返回
未分类 Key 中文

Echo Developer Guide

Build apps on AINative and earn revenue through the Echo Developer Program. Use when (1) Registering as a developer, (2) Setting markup rates (0-40%), (3) Ch...
Build apps on AINative and earn revenue through the Echo Developer Program. Use when (1) Registering as a developer, (2) Setting markup rates (0-40%), (3) Ch...
urbantech urbantech 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 280
下载
💾 1
安装
1
版本
#latest

概述

Echo Developer Program Guide

How It Works

  1. You build an app using AINative APIs
  2. Your customers use your app → they consume API credits
  3. You set a markup (0–40%) on top of AINative's cost
  4. AINative takes 5% platform fee
  5. You receive the rest via weekly Stripe Connect payouts

Example: Customer uses 1,000 credits at base cost $0.10. You set 30% markup → you earn $0.03, AINative takes $0.0015.

Register as a Developer

import requests

requests.post(
    "https://api.ainative.studio/api/v1/echo/register",
    headers={"Authorization": f"Bearer {jwt_token}"},
    json={"developer_name": "My App", "website": "https://myapp.com"}
)

Set Your Markup Rate

# Set 25% markup (range: 0.0 to 0.40)
requests.put(
    "https://api.ainative.studio/api/v1/echo/markup",
    headers={"Authorization": f"Bearer {jwt_token}"},
    json={"markup_rate": 0.25}
)

Check Earnings

earnings = requests.get(
    "https://api.ainative.studio/api/v1/echo/earnings",
    headers={"Authorization": f"Bearer {jwt_token}"}
).json()

print(f"Total earned: ${earnings['total_earnings']}")
print(f"This month: ${earnings['current_period_earnings']}")
print(f"Pending payout: ${earnings['pending_amount']}")

Connect Stripe for Payouts

# Start Stripe Connect onboarding
onboard = requests.post(
    "https://api.ainative.studio/api/v1/echo/connect/onboard",
    headers={"Authorization": f"Bearer {jwt_token}"}
).json()

# Redirect your user to:
print(onboard["onboarding_url"])  # Stripe Connect Express page

# Check status
status = requests.get(
    "https://api.ainative.studio/api/v1/echo/connect/status",
    headers={"Authorization": f"Bearer {jwt_token}"}
).json()
print(f"Payouts enabled: {status['payouts_enabled']}")

Request Manual Payout

# Minimum payout: $10
payout = requests.post(
    "https://api.ainative.studio/api/v1/echo/payout",
    headers={"Authorization": f"Bearer {jwt_token}"},
    json={"amount": 50.00}
).json()
print(f"Payout requested: ${payout['amount']}, ETA: {payout['estimated_arrival']}")

Auto-Payout Settings

# Enable weekly automatic payouts
requests.post(
    "https://api.ainative.studio/api/v1/echo/settings/auto",
    headers={"Authorization": f"Bearer {jwt_token}"},
    json={"enabled": True, "minimum_amount": 10.00, "schedule": "weekly"}
)

Earnings History

history = requests.get(
    "https://api.ainative.studio/api/v1/echo/earnings/history",
    headers={"Authorization": f"Bearer {jwt_token}"},
    params={"days": 30}
).json()

Echo API Endpoints

EndpointMethodDescription
-------------------------------
/api/v1/echo/registerPOSTRegister as developer
/api/v1/echo/markupPUTSet markup rate (0-40%)
/api/v1/echo/earningsGETCurrent earnings summary
/api/v1/echo/earnings/historyGETEarnings over time
/api/v1/echo/earnings/breakdownGETBreakdown by app/customer
/api/v1/echo/payoutsGETList past payouts
/api/v1/echo/payoutPOSTRequest manual payout
/api/v1/echo/balanceGETAvailable payout balance
/api/v1/echo/connect/onboardPOSTStart Stripe Connect
/api/v1/echo/connect/statusGETCheck Stripe Connect status
/api/v1/echo/settings/autoGET/POSTAuto-payout settings

Key Concepts

  • Developers build their OWN apps — not upload models to AINative
  • Customers pay developers — developers bill customers using AINative pricing + markup
  • Weekly payouts via Stripe Connect Express, minimum $10
  • Platform fee 5% of developer earnings (deducted automatically)
  • Markup range 0% to 40% — set per developer account

References

  • src/backend/app/api/v1/endpoints/developer_earnings.py — 21 route handlers
  • src/backend/app/services/stripe_service.py — Stripe Connect integration
  • src/backend/app/tasks/developer_payouts.py — Weekly Celery payout tasks
  • docs/guides/DEVELOPER_PAYOUTS_GUIDE.md — Full payouts guide
  • docs/projects/ainative-developer-studio/guides/ECHO_DEVELOPER_GUIDE.md — External dev guide (1,283 lines)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 16:40 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

knowledge-management

Summarize

paudyyin
智能摘要工具,自动为长文本、文档、网页生成摘要,提取要点与关键词,支持自定义摘要长度。
★ 964 📥 520,747
knowledge-management

Obsidian

steipete
操作 Obsidian 仓库(纯 Markdown 笔记)并通过 obsidian-cli 自动化。
★ 447 📥 105,387
dev-programming

Code Quality

urbantech
编码风格标准、安全指南和可访问性要求。适用于(1)编写新代码,(2)审查代码的风格/安全性,(3)实现阶段。
★ 1 📥 3,493