Commands
Command Usage
/img
Command
/img
CommandUsage Examples
Parameters
prompt
: Image description (3-1000 characters)Optional style enhancements automatically applied
Response
Processing message
Generated image
AI-generated caption
Error message (if applicable)
Function Calling
Natural Language Triggers
"Generate an image of..."
"Create a picture showing..."
"Show me an illustration of..."
"Make an image depicting..."
Implementation
Command Handler
Validation
Processing
Response Handling
Error Handling
User Errors
Empty prompt
Prompt too short/long
Content policy violations
Rate limiting
System Errors
API failures
Storage errors
Network issues
Buffer handling
Error Messages
Best Practices
Prompt Writing
Be specific and detailed
Avoid prohibited content
Use clear descriptions
Consider style elements
Command Usage
Respect rate limits
Check error messages
Verify image generation
Monitor response time
Function Integration
Handle all error cases
Implement timeouts
Verify storage
Track metrics
Related Documentation
Last updated