360 Secure SkillHub
360 安全技能中心

Echo Developer Guide

该 Skill 是 AINative Echo 开发者计划指南,给出 REST 端点与 Python 调用示例:注册开发者、设置 0–40% 加价率、查询收益与历史、查看余额、发起手动打款、配置每周自动打款,并通过 Stripe Connect 完成提现引导与状态检查;平台抽取开发者收益的 5%,最低打款 10 美元。

urbantech
urbantech
热度 43.46
最近更新 2026-05-11 17:35:46
分类:开发依赖:第三方 API / 代码执行应用场景:API 集成 / 财务

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add echo-developer-guide
Metadata
name
echo-developer-guide
description
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) Checking earnings and payouts, (4) Integrating Stripe Connect for payouts, (5) Building apps that bill customers for API usage. Revenue = your markup on customers' API usage, platform fee 5%. Closes

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

Endpoint Method Description
/api/v1/echo/register POST Register as developer
/api/v1/echo/markup PUT Set markup rate (0-40%)
/api/v1/echo/earnings GET Current earnings summary
/api/v1/echo/earnings/history GET Earnings over time
/api/v1/echo/earnings/breakdown GET Breakdown by app/customer
/api/v1/echo/payouts GET List past payouts
/api/v1/echo/payout POST Request manual payout
/api/v1/echo/balance GET Available payout balance
/api/v1/echo/connect/onboard POST Start Stripe Connect
/api/v1/echo/connect/status GET Check Stripe Connect status
/api/v1/echo/settings/auto GET/POST Auto-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)