Developer Docs
Identity Market API
Generate images using governed AI identities through a hosted API with authenticated access and usage tracking.
Client Libraries & SDKs
Official SDKs are planned for v2.0. For now, use the REST API directly from your server or backend jobs.
JavaScript / TypeScript
const IDENTITY_MARKET_API_KEY = process.env.IDENTITY_MARKET_API_KEY;
async function generateImage(identityId, prompt) {
const response = await fetch('https://identity-market.com/api/v1/generate', {
method: 'POST',
headers: {
Authorization: `Bearer ${IDENTITY_MARKET_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
identityId,
prompt,
width: 1024,
height: 1024,
}),
});
if (!response.ok) {
const error = await response.json();
throw new Error(`Generation failed: ${error.error}`);
}
const data = await response.json();
return data.outputs;
}Python
import os
import requests
API_KEY = os.environ.get('IDENTITY_MARKET_API_KEY')
def generate_image(identity_id: str, prompt: str) -> list[str]:
response = requests.post(
'https://identity-market.com/api/v1/generate',
headers={
'Authorization': f'Bearer {API_KEY}',
'Content-Type': 'application/json',
},
json={
'identityId': identity_id,
'prompt': prompt,
'width': 1024,
'height': 1024,
}
)
response.raise_for_status()
return response.json()['outputs']Coming Next
Official SDK packages for JavaScript, Python, and other languages are planned for Q3 2026. Subscribe to the changelog to be notified when they become available.