• erio's avatar
    feat: channel token pricing takes priority over per-image billing · 38da737e
    erio authored
    When ImageCount > 0, check if channel has token pricing configured:
    - YES (source=channel, mode=token) → use token billing with image_output_tokens
    - NO → fall back to CalculateImageCost (original per-image billing)
    
    This allows channels to configure $/MTok pricing for image generation
    models while maintaining backward compatibility for setups without
    channel pricing.
    38da737e
gateway_service.go 303 KB