Get AI Pricing (v1)
Method & Path
GET /api/v1/workspace/:workspaceId/ai/pricing
Description
Get AI tool pricing information including cost per post, image, and vision processing.
Authentication
Required: Workspace authentication. User must be authenticated as Workspace Owner or Staff with workspace permissions.
Headers
Authorization: Bearer <workspace_token>
Content-Type: application/json
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
workspaceId | string | Yes | Workspace identifier |
Response 200 OK
{
"textCostPerPost": 0.10,
"imageCostPerImage": 0.20,
"visionCostPerImage": 0.15,
"costMultiplier": 1.0
}
Response Fields
textCostPerPost(number): Cost per marketing post text generationimageCostPerImage(number): Cost per image generationvisionCostPerImage(number): Cost per image vision processingcostMultiplier(number): Cost multiplier applied to all AI operations
Common Errors
401 Unauthorized: Missing or invalid authentication token
404 Not Found: Workspace not found
500 Internal Server Error: Server error occurred while processing the request