A novel source of continuous-wave terahertz radiation based on difference frequency generation (DFG) in GaAs crystal is proposed. Phase matching is provided using integration of appropriate optical and terahertz waveguides based on dispersive properties of GaAs. The output frequency can be tuned between 0–3.5 THz by tuning the incident wavelengths in the range of 1.5–1.6 µm