Fireworks has introduced two new features, JSON mode and structured grammar mode, to enhance the usability and reliability of its language models by ensuring structured output. JSON mode allows users to define a JSON output schema for models to adhere to, making it especially useful for tasks like API calls where specific data formats are required. Structured grammar mode, inspired by Llama.cpp's grammar-based sampling, provides flexibility by enabling output according to arbitrary context-free grammar, allowing for more complex and varied applications such as programming languages or specialized language outputs. These features aim to address challenges in generating predictable and parsable outputs, reducing the need for extensive prompt engineering. Fireworks claims their platform offers superior performance compared to competitors, with faster token generation speeds and exclusive support for grammar mode, promoting innovation in generative AI applications.