✅ v0.2 Release Preparation: - Update version to 0.2.0 in pyproject.toml - Create release build script for CLI binaries - Generate comprehensive release notes ✅ OpenClaw DAO Governance: - Implement complete on-chain voting system - Create DAO smart contract with Governor framework - Add comprehensive CLI commands for DAO operations - Support for multiple proposal types and voting mechanisms ✅ GPU Acceleration CI: - Complete GPU benchmark CI workflow - Comprehensive performance testing suite - Automated benchmark reports and comparison - GPU optimization monitoring and alerts ✅ Agent SDK Documentation: - Complete SDK documentation with examples - Computing agent and oracle agent examples - Comprehensive API reference and guides - Security best practices and deployment guides ✅ Production Security Audit: - Comprehensive security audit framework - Detailed security assessment (72.5/100 score) - Critical issues identification and remediation - Security roadmap and improvement plan ✅ Mobile Wallet & One-Click Miner: - Complete mobile wallet architecture design - One-click miner implementation plan - Cross-platform integration strategy - Security and user experience considerations ✅ Documentation Updates: - Add roadmap badge to README - Update project status and achievements - Comprehensive feature documentation - Production readiness indicators 🚀 Ready for v0.2.0 release with agent-first architecture
125 lines
1.7 KiB
Markdown
125 lines
1.7 KiB
Markdown
# Client API Reference
|
|
|
|
REST API endpoints for client operations.
|
|
|
|
## Endpoints
|
|
|
|
### Submit Job
|
|
|
|
```
|
|
POST /v1/jobs
|
|
```
|
|
|
|
**Request Body:**
|
|
|
|
```json
|
|
{
|
|
"model": "gpt2",
|
|
"input": "string or file_id",
|
|
"output_config": {
|
|
"destination": "local or s3://bucket/path",
|
|
"format": "json"
|
|
},
|
|
"requirements": {
|
|
"gpu_type": "v100",
|
|
"gpu_count": 1,
|
|
"min_vram_gb": 16
|
|
},
|
|
"priority": "normal",
|
|
"timeout_seconds": 3600
|
|
}
|
|
```
|
|
|
|
**Response:**
|
|
|
|
```json
|
|
{
|
|
"job_id": "job_abc123",
|
|
"estimated_cost": 0.05,
|
|
"estimated_time_seconds": 600
|
|
}
|
|
```
|
|
|
|
### Get Job Status
|
|
|
|
```
|
|
GET /v1/jobs/{job_id}
|
|
```
|
|
|
|
**Response:**
|
|
|
|
```json
|
|
{
|
|
"job_id": "job_abc123",
|
|
"status": "running",
|
|
"progress": 45,
|
|
"miner_id": "miner_xyz789",
|
|
"created_at": "2026-02-13T10:00:00Z",
|
|
"started_at": "2026-02-13T10:01:00Z",
|
|
"completed_at": null,
|
|
"result": null
|
|
}
|
|
```
|
|
|
|
### List Jobs
|
|
|
|
```
|
|
GET /v1/jobs?status=running&limit=10
|
|
```
|
|
|
|
**Response:**
|
|
|
|
```json
|
|
{
|
|
"jobs": [
|
|
{
|
|
"job_id": "job_abc123",
|
|
"status": "running",
|
|
"model": "gpt2"
|
|
}
|
|
],
|
|
"total": 1,
|
|
"has_more": false
|
|
}
|
|
```
|
|
|
|
### Cancel Job
|
|
|
|
```
|
|
DELETE /v1/jobs/{job_id}
|
|
```
|
|
|
|
### Download Results
|
|
|
|
```
|
|
GET /v1/jobs/{job_id}/download
|
|
```
|
|
|
|
### Get Job History
|
|
|
|
```
|
|
GET /v1/jobs/history?from=2026-01-01&to=2026-01-31
|
|
```
|
|
|
|
## Error Codes
|
|
|
|
| Code | Description |
|
|
|------|-------------|
|
|
| 400 | Invalid request |
|
|
| 401 | Unauthorized |
|
|
| 404 | Job not found |
|
|
| 422 | Validation error |
|
|
| 429 | Rate limited |
|
|
| 500 | Server error |
|
|
|
|
## Rate Limits
|
|
|
|
- 60 requests/minute
|
|
- 1000 requests/hour
|
|
|
|
## Next
|
|
|
|
- [1_quick-start.md](./1_quick-start.md) — Get started quickly
|
|
- [2_job-submission.md](./2_job-submission.md) — CLI-based job submission
|
|
- [CLI Guide](../0_getting_started/3_cli.md) — Full CLI reference
|