Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,8 @@ Fill out `packages/app/control/.env` and `packages/app/server/.env`. Then...

- `pnpm i`
- `pnpm dev`

## Navigation

- [Back to `REPOS`](../README.md)
- [Back to `AI_REVENUE_SPRINT_100_24H`](../../README.md)
13 changes: 13 additions & 0 deletions packages/app/control/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,16 @@ pnpm start
## License

This project is licensed under the MIT License.

## Navigation

- [Back to `packages/app`](../../README.md)
- [Back to `echo`](../../../README.md)
- [Back to `REPOS`](../../../../README.md)
- [Back to `AI_REVENUE_SPRINT_100_24H`](../../../../../README.md)
## Navigation

- [Back to `packages/app`](../../README.md)
- [Back to `echo`](../../../README.md)
- [Back to `REPOS`](../../../../README.md)
- [Back to `AI_REVENUE_SPRINT_100_24H`](../../../../../README.md)
13 changes: 13 additions & 0 deletions packages/app/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,16 @@ CMD ["pnpm", "start"]
## Error Handling

If the generated Prisma client is not found, the server will throw a descriptive error message asking you to run `pnpm run copy-prisma`.

## Navigation

- [Back to `packages/app`](../../README.md)
- [Back to `echo`](../../../README.md)
- [Back to `REPOS`](../../../../README.md)
- [Back to `AI_REVENUE_SPRINT_100_24H`](../../../../../README.md)
## Navigation

- [Back to `packages/app`](../../README.md)
- [Back to `echo`](../../../README.md)
- [Back to `REPOS`](../../../../README.md)
- [Back to `AI_REVENUE_SPRINT_100_24H`](../../../../../README.md)
6 changes: 6 additions & 0 deletions packages/app/server/src/__tests__/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,9 @@ The test suite can be extended to cover:
3. Rate limiting behavior
4. Concurrent request handling
5. Performance testing
## Navigation

- [Back to `packages/app/server/src`](../../../README.md)
- [Back to `echo`](../../../../README.md)
- [Back to `REPOS`](../../../../../README.md)
- [Back to `AI_REVENUE_SPRINT_100_24H`](../../../../../../README.md)
2 changes: 2 additions & 0 deletions packages/app/server/src/providers/VertexAIProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import { env } from '../env';
// Constants
export const PROXY_PASSTHROUGH_ONLY_MODEL = 'PROXY_PLACEHOLDER_VERTEX_AI';
const VEO3_MODELS = [
'veo-3.1-fast-generate-preview',
'veo-3.1-generate-preview',
'veo-3.0-fast-generate-preview',
'veo-3.0-generate-preview',
];
Expand Down
6 changes: 6 additions & 0 deletions packages/sdk/aix402/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,9 @@ const result = streamText({
messages: [{ role: 'user', content: 'Hello!' }],
});
```
## Navigation

- [Back to `packages/sdk`](../../README.md)
- [Back to `echo`](../../../README.md)
- [Back to `REPOS`](../../../../README.md)
- [Back to `AI_REVENUE_SPRINT_100_24H`](../../../../../README.md)
7 changes: 7 additions & 0 deletions packages/sdk/auth-js-provider/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,10 @@
An Auth.js Provider for the Echo platform that allows you to use Echo as your authentication provider.

Not yet published on NPM.

## Navigation

- [Back to `packages/sdk`](../../README.md)
- [Back to `echo`](../../../README.md)
- [Back to `REPOS`](../../../../README.md)
- [Back to `AI_REVENUE_SPRINT_100_24H`](../../../../../README.md)
7 changes: 7 additions & 0 deletions packages/sdk/component-registry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,10 @@ This is a template for creating a custom registry using Next.js.
## Documentation

Visit the [shadcn documentation](https://ui.shadcn.com/docs/registry) to view the full documentation.

## Navigation

- [Back to `packages/sdk`](../../README.md)
- [Back to `echo`](../../../README.md)
- [Back to `REPOS`](../../../../README.md)
- [Back to `AI_REVENUE_SPRINT_100_24H`](../../../../../README.md)
7 changes: 7 additions & 0 deletions packages/sdk/examples/next-402-chat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,3 +229,10 @@ Make sure to update your Echo app configuration with your production domain.
---

Built with ❤️ using [Echo](https://echo.merit.systems) - The simplest way to build AI applications with built-in billing and user management.

## Navigation

- [Back to `packages/sdk/examples`](../../../README.md)
- [Back to `echo`](../../../../README.md)
- [Back to `REPOS`](../../../../../README.md)
- [Back to `AI_REVENUE_SPRINT_100_24H`](../../../../../../README.md)
7 changes: 7 additions & 0 deletions packages/sdk/examples/next/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,10 @@ You can check out [the Next.js GitHub repository](https://github.com/vercel/next
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.

## Navigation

- [Back to `packages/sdk/examples`](../../../README.md)
- [Back to `echo`](../../../../README.md)
- [Back to `REPOS`](../../../../../README.md)
- [Back to `AI_REVENUE_SPRINT_100_24H`](../../../../../../README.md)
7 changes: 7 additions & 0 deletions packages/sdk/examples/vite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,10 @@ The entire app is in `src/App.tsx` - just 70 lines of code demonstrating:
4. Using `EchoSignIn` and `EchoTokens` components

This shows the complete user journey from sign-up to having a positive balance.

## Navigation

- [Back to `packages/sdk/examples`](../../../README.md)
- [Back to `echo`](../../../../README.md)
- [Back to `REPOS`](../../../../../README.md)
- [Back to `AI_REVENUE_SPRINT_100_24H`](../../../../../../README.md)
7 changes: 7 additions & 0 deletions packages/sdk/next/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,3 +255,10 @@ For complete documentation and examples, visit:
- Next.js 15.0.0 or higher
- React 18.0.0 or 19.0.0
- Node.js 18 or higher

## Navigation

- [Back to `packages/sdk`](../../README.md)
- [Back to `echo`](../../../README.md)
- [Back to `REPOS`](../../../../README.md)
- [Back to `AI_REVENUE_SPRINT_100_24H`](../../../../../README.md)
7 changes: 7 additions & 0 deletions packages/sdk/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ React SDK for Echo OAuth2 + PKCE authentication and token management.
pnpm install @merit-systems/echo-react-sdk
```

## Navigation

- [Back to `packages/sdk`](../../README.md)
- [Back to `echo`](../../../README.md)
- [Back to `REPOS`](../../../../README.md)
- [Back to `AI_REVENUE_SPRINT_100_24H`](../../../../../README.md)

## Setup

```tsx
Expand Down
7 changes: 7 additions & 0 deletions packages/sdk/ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ The official TypeScript SDK for the Echo platform, providing easy access to Echo
pnpm install @merit-systems/echo-typescript-sdk
```

## Navigation

- [Back to `packages/sdk`](../../README.md)
- [Back to `echo`](../../../README.md)
- [Back to `REPOS`](../../../../README.md)
- [Back to `AI_REVENUE_SPRINT_100_24H`](../../../../../README.md)

## Programmatic Usage

```typescript
Expand Down
7 changes: 7 additions & 0 deletions packages/sdk/ts/src/__tests__/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,3 +227,10 @@ The test suite is designed for CI/CD environments:
- Coverage reporting
- Parallel test execution support
- Deterministic test results

## Navigation

- [Back to `packages/sdk/ts`](../../../README.md)
- [Back to `echo`](../../../../README.md)
- [Back to `REPOS`](../../../../../README.md)
- [Back to `AI_REVENUE_SPRINT_100_24H`](../../../../../../README.md)
24 changes: 24 additions & 0 deletions packages/sdk/ts/src/supported-models/video/vertex-ai.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { describe, expect, it } from 'vitest';

import { VertexAIVideoModels } from './vertex-ai';

describe('VertexAIVideoModels', () => {
it('includes Veo 3.1 preview models with pricing metadata', () => {
expect(VertexAIVideoModels).toEqual(
expect.arrayContaining([
expect.objectContaining({
cost_per_second_with_audio: 0.15,
cost_per_second_without_audio: 0.1,
model_id: 'veo-3.1-fast-generate-preview',
provider: 'VertexAI',
}),
expect.objectContaining({
cost_per_second_with_audio: 0.4,
cost_per_second_without_audio: 0.2,
model_id: 'veo-3.1-generate-preview',
provider: 'VertexAI',
}),
]),
);
});
});
24 changes: 19 additions & 5 deletions packages/sdk/ts/src/supported-models/video/vertex-ai.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,40 @@
import type { SupportedVideoModel } from '../types';

export type VertexAIVideoModel =
| 'veo-3.1-fast-generate-preview'
| 'veo-3.1-generate-preview'
| 'veo-3.0-fast-generate-preview'
| 'veo-3.0-generate-preview';
/**
* Vertex AI video models with official pricing information
* Based on: https://cloud.google.com/vertex-ai/generative-ai/pricing
*
* Veo 3: $0.40/second with audio, $0.20/second video only
* Veo 3 Fast: $0.15/second with audio, $0.10/second video only
* Veo 3 / 3.1: $0.40/second with audio, $0.20/second video only
* Veo 3 / 3.1 Fast: $0.15/second with audio, $0.10/second video only
*/
export const VertexAIVideoModels: SupportedVideoModel[] = [
{
model_id: 'veo-3.1-fast-generate-preview',
cost_per_second_with_audio: 0.15,
cost_per_second_without_audio: 0.1,
provider: 'VertexAI',
},
{
model_id: 'veo-3.1-generate-preview',
cost_per_second_with_audio: 0.4,
cost_per_second_without_audio: 0.2,
provider: 'VertexAI',
},
{
model_id: 'veo-3.0-fast-generate-preview',
cost_per_second_with_audio: 0.15,
cost_per_second_without_audio: 0.1, // Fixed: was 0.1, now 0.10 for clarity
cost_per_second_without_audio: 0.1,
provider: 'VertexAI',
},
{
model_id: 'veo-3.0-generate-preview',
cost_per_second_with_audio: 0.4, // Fixed: was 0.4, now 0.40 for clarity
cost_per_second_without_audio: 0.2, // Fixed: was 0.2, now 0.20 for clarity
cost_per_second_with_audio: 0.4,
cost_per_second_without_audio: 0.2,
provider: 'VertexAI',
},
];
7 changes: 7 additions & 0 deletions packages/tests/integration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,10 @@ Reset only:
```bash
pnpm db:reset
```

## Navigation

- [Back to `packages/tests`](../../README.md)
- [Back to `echo`](../../../README.md)
- [Back to `REPOS`](../../../../README.md)
- [Back to `AI_REVENUE_SPRINT_100_24H`](../../../../../README.md)
6 changes: 6 additions & 0 deletions templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,3 +306,9 @@ Some templates (like `nextjs-api-key-template`) may require additional environme
---

Built with ❤️ by [Merit Systems](https://merit.systems)

## Navigation

- [Back to `echo`](../README.md)
- [Back to `REPOS`](../../README.md)
- [Back to `AI_REVENUE_SPRINT_100_24H`](../../../README.md)
7 changes: 7 additions & 0 deletions templates/assistant-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,10 @@ const runtime = useChatRuntime({
## API Route

The API route at `/api/chat` uses the new `streamText` function from AI SDK v5 to handle chat completions.

## Navigation

- [Back to `templates`](../README.md)
- [Back to `echo`](../../README.md)
- [Back to `REPOS`](../../../README.md)
- [Back to `AI_REVENUE_SPRINT_100_24H`](../../../../README.md)
7 changes: 7 additions & 0 deletions templates/authjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,10 @@ You can check out [the Next.js GitHub repository](https://github.com/vercel/next
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.

## Navigation

- [Back to `templates`](../README.md)
- [Back to `echo`](../../README.md)
- [Back to `REPOS`](../../../README.md)
- [Back to `AI_REVENUE_SPRINT_100_24H`](../../../../README.md)
7 changes: 7 additions & 0 deletions templates/echo-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,3 +320,10 @@ MIT
---

Built with ❤️ by [Merit Systems](https://merit.systems)

## Navigation

- [Back to `templates`](../README.md)
- [Back to `echo`](../../README.md)
- [Back to `REPOS`](../../../README.md)
- [Back to `AI_REVENUE_SPRINT_100_24H`](../../../../README.md)
7 changes: 7 additions & 0 deletions templates/next-chat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,3 +243,10 @@ Make sure to update your Echo app configuration with your production domain.
---

Built with ❤️ using [Echo](https://echo.merit.systems) - The simplest way to build AI applications with built-in billing and user management.

## Navigation

- [Back to `templates`](../README.md)
- [Back to `echo`](../../README.md)
- [Back to `REPOS`](../../../README.md)
- [Back to `AI_REVENUE_SPRINT_100_24H`](../../../../README.md)
7 changes: 7 additions & 0 deletions templates/next-image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,10 @@ You can check out [the Next.js GitHub repository](https://github.com/vercel/next
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.

## Navigation

- [Back to `templates`](../README.md)
- [Back to `echo`](../../README.md)
- [Back to `REPOS`](../../../README.md)
- [Back to `AI_REVENUE_SPRINT_100_24H`](../../../../README.md)
7 changes: 7 additions & 0 deletions templates/next-video-template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,10 @@ You can check out [the Next.js GitHub repository](https://github.com/vercel/next
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.

## Navigation

- [Back to `templates`](../README.md)
- [Back to `echo`](../../README.md)
- [Back to `REPOS`](../../../README.md)
- [Back to `AI_REVENUE_SPRINT_100_24H`](../../../../README.md)
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export function validateGenerateVideoRequest(body: unknown): ValidationResult {
}

const validModels: VideoModelOption[] = [
'veo-3.1-fast-generate-preview',
'veo-3.1-generate-preview',
'veo-3.0-fast-generate-preview',
'veo-3.0-generate-preview',
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import { getEchoToken } from '@/echo';
import { ERROR_MESSAGES } from '@/lib/constants';
import type { VideoModelOption } from '@/lib/types';
import {
GenerateVideosOperation,
GenerateVideosParameters,
Expand All @@ -14,7 +15,7 @@ import {
*/
export async function handleGeminiGenerate(
prompt: string,
model: 'veo-3.0-fast-generate-preview' | 'veo-3.0-generate-preview',
model: VideoModelOption,
durationSeconds: number = 4,
generateAudio: boolean = false,
image?: string, // Base64 encoded image or data URL (first frame)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ import { FileInputManager } from './FileInputManager';
import { VideoHistory } from './video-history';

const models: VideoModelConfig[] = [
{ id: 'veo-3.1-fast-generate-preview', name: 'Veo 3.1 Fast' },
{ id: 'veo-3.1-generate-preview', name: 'Veo 3.1' },
{ id: 'veo-3.0-fast-generate-preview', name: 'Veo 3 Fast' },
{ id: 'veo-3.0-generate-preview', name: 'Veo 3' },
];
Expand All @@ -57,7 +59,7 @@ const models: VideoModelConfig[] = [
*/
export default function VideoGenerator() {
const [model, setModel] = useState<VideoModelOption>(
'veo-3.0-fast-generate-preview'
'veo-3.1-fast-generate-preview'
);
const [durationSeconds, setDurationSeconds] = useState<4 | 6 | 8>(4);
const [generateAudio, setGenerateAudio] = useState<boolean>(false);
Expand Down
2 changes: 2 additions & 0 deletions templates/next-video-template/src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export type ModelOption = 'openai' | 'gemini';
* Available AI models for video generation
*/
export type VideoModelOption =
| 'veo-3.1-fast-generate-preview'
| 'veo-3.1-generate-preview'
| 'veo-3.0-fast-generate-preview'
| 'veo-3.0-generate-preview';

Expand Down
Loading