Developer Documentation
DeveloperDocs
Build powerful AI applications with our comprehensive APIs
Complete documentation, SDKs, and examples to help you integrate AniGROK's AI generation, computing network, and blockchain features into your applications.
50+
API Endpoints
6
SDK Languages
100+
Code Examples

AniGROK SDK
Interactive Code Example
// Quick Start Example
import { AniGROKSDK } from '@anigrok/sdk'
// Initialize SDK
const anigrok = new AniGROKSDK({
apiKey: 'your-api-key',
environment: 'production'
})
// Generate AI artwork
const artwork = await anigrok.generate({
prompt: 'A cyberpunk cat',
model: 'stable-diffusion-xl'
})
✓ Image generated successfully
→ NFT minting in progress...
Getting Started
Follow our step-by-step guide to integrate AniGROK into your application
Quick Start
5 min
Get up and running with AniGROK in 5 minutes
SDK Installation
2 min
Install AniGROK SDK for your preferred language
Authentication
3 min
Set up API keys and authentication
First API Call
5 min
Make your first successful API request
API Documentation
Comprehensive guides for all AniGROK platform features and integrations
🎨
AI Minting API
Generate and mint AI content as NFTs
Text-to-Image
Text-to-Video
Audio Generation
NFT Minting
⚡
Computing Network API
Access distributed computing resources
Task Submission
Resource Allocation
Result Retrieval
Billing
🤖
Model Protocol API
Upload and manage AI models
Model Upload
Version Control
Revenue Tracking
Quality Assessment
🏛️
DAO Governance API
Participate in platform governance
Proposal Creation
Voting System
Token Management
Delegation
⛓️
Blockchain Integration
Smart contract interactions
Contract Deployment
Transaction Handling
Event Listening
Gas Optimization
🔔
Webhooks & Events
Real-time notifications and events
Event Types
Webhook Setup
Payload Structure
Security
Code Examples
Ready-to-use code examples in multiple programming languages
JavaScript/TypeScript
AniGROK SDK Example
import { AniGROKSDK } from '@anigrok/sdk';
// Initialize the SDK with your API key
const anigrok = new AniGROKSDK({
apiKey: 'YOUR_API_KEY',
environment: 'production'
});
// Generate an image
const image = await anigrok.generate({
prompt: 'A futuristic city with flying cars and neon lights',
model: 'stable-diffusion-xl',
enhancePrompt: true,
width: 1024,
height: 1024
});
// Mint the generated image
const txHash = await anigrok.mint({
image: image.url,
name: 'Future City',
description: 'A futuristic cityscape with neon lights',
royaltyBps: 500 // 5% royalties
});
console.log(`Minted successfully: ${txHash}`);
Python
AniGROK SDK Example
from anigrok import AniGROKSDK
import asyncio
# Initialize the SDK with your API key
anigrok = AniGROKSDK(
api_key="YOUR_API_KEY",
environment="production"
)
async def generate_and_mint():
# Generate an image
image = await anigrok.generate(
prompt="A futuristic city with flying cars and neon lights",
model="stable-diffusion-xl",
enhance_prompt=True,
width=1024,
height=1024
)
# Mint the generated image
tx_hash = await anigrok.mint(
image=image.url,
name="Future City",
description="A futuristic cityscape with neon lights",
royalty_bps=500 # 5% royalties
)
print(f"Minted successfully: {tx_hash}")
# Run the async function
asyncio.run(generate_and_mint())
cURL
AniGROK SDK Example
# Generate AI artwork
curl -X POST "https://api.anigrok.ai/v1/ai/generate" \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A cyberpunk cat in space",
"style": "digital-art",
"resolution": "1024x1024"
}'
# Mint as NFT
curl -X POST "https://api.anigrok.ai/v1/nft/mint" \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"image_url": "https://...",
"metadata": {
"name": "Cyberpunk Cat",
"description": "AI-generated artwork"
}
}'